[FFmpeg-cvslog] r17622 - trunk/libavcodec/h264.c

michael subversion
Thu Feb 26 22:09:25 CET 2009


Author: michael
Date: Thu Feb 26 22:09:24 2009
New Revision: 17622

Log:
Half user provided time_base once during the first frame when there is no
timebase stored in the h264 stream.
This should fix fate. (ffmpeg.c used pict_repeat with its default 1/25 timebase)

Modified:
   trunk/libavcodec/h264.c

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	Thu Feb 26 21:36:47 2009	(r17621)
+++ trunk/libavcodec/h264.c	Thu Feb 26 22:09:24 2009	(r17622)
@@ -3768,6 +3768,9 @@ static int decode_slice_header(H264Conte
                 s->avctx->time_base.den *= 2;
             av_reduce(&s->avctx->time_base.num, &s->avctx->time_base.den,
                       s->avctx->time_base.num, s->avctx->time_base.den, 1<<30);
+        }else if(!h->sps.time_scale && !s->avctx->frame_number){
+            s->avctx->time_base.den *=2;
+            h->sps.time_scale= s->avctx->time_base.den;
         }
     }
 




More information about the ffmpeg-cvslog mailing list