Skip to content

Commit feeeefc

Browse files
JeromeMartinezmichaelni
authored andcommitted
avformat/mxfenc: reject unsupported ffv1 versions
Signed-off-by: Michael Niedermayer <[email protected]>
1 parent f0cd561 commit feeeefc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libavformat/mxfenc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2493,6 +2493,10 @@ static int mxf_parse_ffv1_frame(AVFormatContext *s, AVStream *st, AVPacket *pkt)
24932493
if (v > 4) {
24942494
return 0;
24952495
}
2496+
if (v > 4) {
2497+
av_log(s, AV_LOG_ERROR, "unsupported ffv1 version %d\n", v);
2498+
return 0;
2499+
}
24962500
sc->micro_version = get_ffv1_unsigned_symbol(&c, state);
24972501
} else {
24982502
uint8_t keystate = 128;

0 commit comments

Comments
 (0)