avformat/mxfenc: reject unsupported ffv1 versions

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Jerome Martinez 2023-04-04 16:57:03 +02:00 committed by Michael Niedermayer
parent f0cd5610e0
commit feeeefc3db
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64

View File

@ -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;