History

avformat/mxfenc: reject unsupported ffv1 versions

Jerome Martinez committed 3 years ago

Commit feeeefc1 parent f0cd5611 file · +4 −0Browse files

Showing the changes to libavformat (1 of 1 file). Show all

Unified · Split

libavformat/mxfenc.c+4−0
@@ -2493,6 +2493,10 @@ static int mxf_parse_ffv1_frame(AVFormatContext *s, AVStream *st, AVPacket *pkt) · 2492 unmodified lines
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;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t