mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
electronicarts: check timebase, fix assertion failure
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a56d963f11
commit
1831274ff1
@ -289,6 +289,10 @@ static int process_video_header_vp6(AVFormatContext *s)
|
||||
avio_skip(pb, 4);
|
||||
ea->time_base.den = avio_rl32(pb);
|
||||
ea->time_base.num = avio_rl32(pb);
|
||||
if (ea->time_base.den <= 0 || ea->time_base.num <= 0) {
|
||||
av_log(s, AV_LOG_ERROR, "Timebase is invalid\n");
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
ea->video_codec = AV_CODEC_ID_VP6;
|
||||
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user