libavformat/mxfenc.c:1668: 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:1634:1: Parameter `s->priv_data->edit_units_count`
1632. }
1633. 
1634. static int mxf_write_d10_packet(AVFormatContext *s, AVPacket *pkt)
      ^
1635. {
1636.     MXFContext *mxf = s->priv_data;

libavformat/mxfenc.c:1668:9: Call
1666.         mxf_write_d10_video_packet(s, st, pkt);
1667.     else
1668.         mxf_write_d10_audio_packet(s, st, pkt);
              ^
1669. 
1670.     put_flush_packet(pb);

libavformat/mxfenc.c:1601:1: <LHS trace>
1599. }
1600. 
1601. static void mxf_write_d10_audio_packet(AVFormatContext *s, AVStream *st, AVPacket *pkt)
      ^
1602. {
1603.     MXFContext *mxf = s->priv_data;

libavformat/mxfenc.c:1601:1: Parameter `s->priv_data->edit_units_count`
  1599. }
  1600. 
  1601. static void mxf_write_d10_audio_packet(AVFormatContext *s, AVStream *st, AVPacket *pkt)
        ^
  1602. {
  1603.     MXFContext *mxf = s->priv_data;

libavformat/mxfenc.c:1613: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` 
  1611.     klv_encode_ber4_length(pb, 4 + frame_size*4*8);
  1612. 
  1613.     put_byte(pb, (frame_size == 1920 ? 0 : (mxf->edit_units_count-1) % 5 + 1));
                          ^
  1614.     put_le16(pb, frame_size);
  1615.     put_byte(pb, (1<<st->codec->channels)-1);
