libavformat/mxfenc.c:1746: 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:1676:1: Parameter `s->priv_data->edit_units_count`
1674. }
1675. 
1676. static int mxf_write_packet(AVFormatContext *s, AVPacket *pkt)
      ^
1677. {
1678.     MXFContext *mxf = s->priv_data;

libavformat/mxfenc.c:1746:13: Call
1744.             mxf_write_d10_video_packet(s, st, pkt);
1745.         else
1746.             mxf_write_d10_audio_packet(s, st, pkt);
                  ^
1747.     } else {
1748.         klv_encode_ber4_length(pb, pkt->size); // write length

libavformat/mxfenc.c:1644:1: <LHS trace>
1642. }
1643. 
1644. static void mxf_write_d10_audio_packet(AVFormatContext *s, AVStream *st, AVPacket *pkt)
      ^
1645. {
1646.     MXFContext *mxf = s->priv_data;

libavformat/mxfenc.c:1644:1: Parameter `s->priv_data->edit_units_count`
  1642. }
  1643. 
  1644. static void mxf_write_d10_audio_packet(AVFormatContext *s, AVStream *st, AVPacket *pkt)
        ^
  1645. {
  1646.     MXFContext *mxf = s->priv_data;

libavformat/mxfenc.c:1655: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` 
  1653.     klv_encode_ber4_length(pb, 4 + frame_size*4*8);
  1654. 
  1655.     avio_w8(pb, (frame_size == 1920 ? 0 : (mxf->edit_units_count-1) % 5 + 1));
                         ^
  1656.     avio_wl16(pb, frame_size);
  1657.     avio_w8(pb, (1<<st->codecpar->channels)-1);
