[FFmpeg-cvslog] r26207 - trunk/libavcodec/mpeg4videodec.c

aurel subversion
Tue Jan 4 00:33:20 CET 2011


Author: aurel
Date: Tue Jan  4 00:33:20 2011
New Revision: 26207

Log:
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

Modified:
   trunk/libavcodec/mpeg4videodec.c

Modified: trunk/libavcodec/mpeg4videodec.c
==============================================================================
--- trunk/libavcodec/mpeg4videodec.c	Mon Jan  3 17:08:56 2011	(r26206)
+++ trunk/libavcodec/mpeg4videodec.c	Tue Jan  4 00:33:20 2011	(r26207)
@@ -1575,6 +1575,7 @@ static int decode_vol_header(MpegEncCont
     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;
     }
 



More information about the ffmpeg-cvslog mailing list