libavformat/mxfenc.c:1689: 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:1623:1: Parameter `s->priv_data->edit_units_count`
1621. }
1622. 
1623. static int mxf_write_packet(AVFormatContext *s, AVPacket *pkt)
      ^
1624. {
1625.     MXFContext *mxf = s->priv_data;

libavformat/mxfenc.c:1689:13: Call
1687.             mxf_write_d10_video_packet(s, st, pkt);
1688.         else
1689.             mxf_write_d10_audio_packet(s, st, pkt);
                  ^
1690.     } else {
1691.         klv_encode_ber4_length(pb, pkt->size); // write length

libavformat/mxfenc.c:1591:1: <LHS trace>
1589. }
1590. 
1591. static void mxf_write_d10_audio_packet(AVFormatContext *s, AVStream *st, AVPacket *pkt)
      ^
1592. {
1593.     MXFContext *mxf = s->priv_data;

libavformat/mxfenc.c:1591:1: Parameter `s->priv_data->edit_units_count`
  1589. }
  1590. 
  1591. static void mxf_write_d10_audio_packet(AVFormatContext *s, AVStream *st, AVPacket *pkt)
        ^
  1592. {
  1593.     MXFContext *mxf = s->priv_data;

libavformat/mxfenc.c:1602:19: 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` 
  1600.     klv_encode_ber4_length(pb, 4 + frame_size*4*8);
  1601. 
  1602.     put_byte(pb, (frame_size == 1920 ? 0 : (mxf->edit_units_count-1) % 5 + 1));
                          ^
  1603.     put_le16(pb, frame_size);
  1604.     put_byte(pb, (1<<st->codec->channels)-1);
