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>
pull/13/merge
Michael Niedermayer 12 years ago
parent c6831e2a70
commit a56d963f11
  1. 2
      libavcodec/vp3.c

@ -2224,7 +2224,7 @@ static int theora_decode_header(AVCodecContext *avctx, GetBitContext *gb)
fps.num = get_bits_long(gb, 32); fps.num = get_bits_long(gb, 32);
fps.den = 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, av_reduce(&avctx->time_base.num, &avctx->time_base.den,
fps.den, fps.num, 1<<30); fps.den, fps.num, 1<<30);
} }

Loading…
Cancel
Save