diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-03-28 03:49:02 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-03-28 03:56:12 +0400 |
commit | a56d963f111b1a192cdabb05500f8083bd77ca93 (patch) | |
tree | ad7b1c0c1385c0177ac3b08d95a8bbac228db284 /libavcodec/vp3.c | |
parent | c6831e2a70f734c71f483d69d46d0635963530c7 (diff) |
vp3: Check fps validity more completely
Fix assertion failure
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vp3.c')
-rw-r--r-- | libavcodec/vp3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c index 1e76786f37..ed5e5343ac 100644 --- a/libavcodec/vp3.c +++ b/libavcodec/vp3.c @@ -2224,7 +2224,7 @@ static int theora_decode_header(AVCodecContext *avctx, GetBitContext *gb) fps.num = get_bits_long(gb, 32); fps.den = get_bits_long(gb, 32); - if (fps.num && fps.den) { + if (fps.num>0 && fps.den>0) { av_reduce(&avctx->time_base.num, &avctx->time_base.den, fps.den, fps.num, 1<<30); } |