libavformat/mxfenc.c:1727: error: Integer Overflow L2
  ([min(0, `s->priv_data->edit_units_count`), 1+max(0, `s->priv_data->edit_units_count`)] - 1):unsigned32 by call to `mxf_write_d10_audio_packet`.

libavformat/mxfenc.c:1660:1: Parameter `s->priv_data->edit_units_count`
1658. }
1659. 
1660. static int mxf_write_packet(AVFormatContext *s, AVPacket *pkt)
      ^
1661. {
1662.     MXFContext *mxf = s->priv_data;

libavformat/mxfenc.c:1727:13: Call
1725.             mxf_write_d10_video_packet(s, st, pkt);
1726.         else
1727.             mxf_write_d10_audio_packet(s, st, pkt);
                  ^
1728.     } else {
1729.         klv_encode_ber4_length(pb, pkt->size); // write length

libavformat/mxfenc.c:1628:1: <LHS trace>
1626. }
1627. 
1628. static void mxf_write_d10_audio_packet(AVFormatContext *s, AVStream *st, AVPacket *pkt)
      ^
1629. {
1630.     MXFContext *mxf = s->priv_data;

libavformat/mxfenc.c:1628:1: Parameter `s->priv_data->edit_units_count`
  1626. }
  1627. 
  1628. static void mxf_write_d10_audio_packet(AVFormatContext *s, AVStream *st, AVPacket *pkt)
        ^
  1629. {
  1630.     MXFContext *mxf = s->priv_data;

libavformat/mxfenc.c:1639:18: Binary operation: ([min(0, s->priv_data->edit_units_count), 1+max(0, s->priv_data->edit_units_count)] - 1):unsigned32 by call to `mxf_write_d10_audio_packet` 
  1637.     klv_encode_ber4_length(pb, 4 + frame_size*4*8);
  1638. 
  1639.     avio_w8(pb, (frame_size == 1920 ? 0 : (mxf->edit_units_count-1) % 5 + 1));
                         ^
  1640.     avio_wl16(pb, frame_size);
  1641.     avio_w8(pb, (1<<st->codec->channels)-1);
