]> git.sesse.net Git - vlc/commitdiff
Fixed PCR origin in ogg.
authorLaurent Aimar <fenrir@videolan.org>
Sun, 3 May 2009 18:46:17 +0000 (20:46 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 3 May 2009 18:46:17 +0000 (20:46 +0200)
It avoids loosing the first packets (audio/video).

modules/demux/ogg.c

index acc8856332d7113d7f98b7b843073918fcef58e2..aa9f687fcedf794007148ea42d06e233e9ab5662 100644 (file)
@@ -552,6 +552,7 @@ static void Ogg_UpdatePCR( logical_stream_t *p_stream,
                               / p_stream->f_rate;
         }
 
+        p_stream->i_pcr += 1;
         p_stream->i_interpolated_pcr = p_stream->i_pcr;
     }
     else