avformat/mxfenc: reject unsupported ffv1 versions

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/389/head
Jerome Martinez 2 years ago committed by Michael Niedermayer
parent f0cd5610e0
commit feeeefc3db
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
  1. 4
      libavformat/mxfenc.c

@ -2493,6 +2493,10 @@ static int mxf_parse_ffv1_frame(AVFormatContext *s, AVStream *st, AVPacket *pkt)
if (v > 4) {
return 0;
}
if (v > 4) {
av_log(s, AV_LOG_ERROR, "unsupported ffv1 version %d\n", v);
return 0;
}
sc->micro_version = get_ffv1_unsigned_symbol(&c, state);
} else {
uint8_t keystate = 128;

Loading…
Cancel
Save