mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
avformat/mxfenc: reject unsupported ffv1 versions
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
f0cd5610e0
commit
feeeefc3db
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue