aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpeg4videodec.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2011-01-03 23:33:20 +0000
committerAurelien Jacobs <aurel@gnuage.org>2011-01-03 23:33:20 +0000
commit4f18f1b089035a99d8e2027d65dea03e5d4de659 (patch)
treec550d443764835e19ee7929a9d2bbd3874cf0f3b /libavcodec/mpeg4videodec.c
parentad6b2c1f6d38dcf6754c6a98b60cb635d10be20c (diff)
downloadffmpeg-4f18f1b089035a99d8e2027d65dea03e5d4de659.tar.gz
mpeg4videodec: reset time_base.num to 0 when detecting time_base.den=0
to avoid leaving time_base in a broken/inconsistent state fix issue2471 Originally committed as revision 26207 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg4videodec.c')
-rw-r--r--libavcodec/mpeg4videodec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c
index b339f7812f..c0d9f8fe3c 100644
--- a/libavcodec/mpeg4videodec.c
+++ b/libavcodec/mpeg4videodec.c
@@ -1575,6 +1575,7 @@ static int decode_vol_header(MpegEncContext *s, GetBitContext *gb){
s->avctx->time_base.den = get_bits(gb, 16);
if(!s->avctx->time_base.den){
av_log(s->avctx, AV_LOG_ERROR, "time_base.den==0\n");
+ s->avctx->time_base.num = 0;
return -1;
}