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 acc8856..aa9f687 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