[FFmpeg-devel] [PATCH] av_estimate_timings_from_pts corrupt timestamps

Wolfram Gloger wmglo
Sat Aug 25 21:51:45 CEST 2007


Hi,

I guess I finally found the reason for strange initial timestamps with
MPEG..

Regards,
Wolfram.

--- trunk/libavformat/utils.c	2007-08-20 12:55:54.000000000 +0200
+++ ffmpeg-wg/libavformat/utils.c	2007-08-25 21:33:06.000000000 +0200
@@ -1559,6 +1559,7 @@
     for(i=0; i<ic->nb_streams; i++){
         st= ic->streams[i];
         st->cur_dts= st->first_dts;
+        st->last_IP_pts = AV_NOPTS_VALUE;
     }
 }
 




More information about the ffmpeg-devel mailing list