[FFmpeg-soc] [soc]: r1219 - dvbmuxer/mpegtsenc.c
realsun
subversion at mplayerhq.hu
Tue Aug 28 18:45:28 CEST 2007
Author: realsun
Date: Tue Aug 28 18:45:28 2007
New Revision: 1219
Log:
set the PCR to a non-zero value in the start, this fixes the bug of the first several black frames when playing with vlc
Modified:
dvbmuxer/mpegtsenc.c
Modified: dvbmuxer/mpegtsenc.c
==============================================================================
--- dvbmuxer/mpegtsenc.c (original)
+++ dvbmuxer/mpegtsenc.c Tue Aug 28 18:45:28 2007
@@ -753,6 +753,8 @@ static int output_packet(AVFormatContext
assert(av_fifo_size(&stream->fifo) > 0);
timestamp_packet= stream->premux_packet;
+ if(s->last_pcr == 0)
+ s->last_pcr = timestamp_packet->dts;
if(timestamp_packet->unwritten_size == timestamp_packet->size){
trailer_size= 0;
}else{
More information about the FFmpeg-soc
mailing list