changeset 3718:945722ee3c89 libavformat

Do not fill the pts reordering buffer with guessed dts. These values should not matter at all in principle because they do not correspond to the time of display of any frame but it seems ffmpeg becomes confused by them if they are far off and its not strictly correct to set them to guessed values. Fixes video_stalls_at_start.wmv
author michael
date Thu, 14 Aug 2008 03:24:58 +0000
parents f65dc584662d
children 6772cfc78d33
files utils.c
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Wed Aug 13 21:15:15 2008 +0000
+++ b/utils.c	Thu Aug 14 03:24:58 2008 +0000
@@ -898,8 +898,6 @@
 
     if(pkt->pts != AV_NOPTS_VALUE && delay <= MAX_REORDER_DELAY){
         st->pts_buffer[0]= pkt->pts;
-        for(i=1; i<delay+1 && st->pts_buffer[i] == AV_NOPTS_VALUE; i++)
-            st->pts_buffer[i]= (i-delay-1) * pkt->duration;
         for(i=0; i<delay && st->pts_buffer[i] > st->pts_buffer[i+1]; i++)
             FFSWAP(int64_t, st->pts_buffer[i], st->pts_buffer[i+1]);
         if(pkt->dts == AV_NOPTS_VALUE)