[FFmpeg-soc] [soc]: r3940 - dvbmuxer/mpegtsenc.c
bcoudurier
subversion at mplayerhq.hu
Sat Jan 10 03:31:28 CET 2009
Author: bcoudurier
Date: Sat Jan 10 03:31:27 2009
New Revision: 3940
Log:
pcr is in 27mhz freq, while dts aren't
Modified:
dvbmuxer/mpegtsenc.c
Modified: dvbmuxer/mpegtsenc.c
==============================================================================
--- dvbmuxer/mpegtsenc.c Sat Jan 10 02:59:02 2009 (r3939)
+++ dvbmuxer/mpegtsenc.c Sat Jan 10 03:31:27 2009 (r3940)
@@ -646,7 +646,7 @@ static int output_packet(AVFormatContext
StreamInfo *stream;
int es_size;
int best_i= -1;
- int64_t pcr= s->last_pcr;
+ int64_t pcr= s->last_pcr/300;
if ((es_size = ff_pes_output_packet(ctx, DEFAULT_PES_PAYLOAD_SIZE,
&pcr, &best_i, flush, flush_packet)) <= 0)
@@ -661,7 +661,7 @@ static int output_packet(AVFormatContext
if(es_size)
stream->premux_packet->unwritten_size -= es_size;
- if(ff_pes_remove_decoded_packets(ctx, s->last_pcr) < 0)
+ if(ff_pes_remove_decoded_packets(ctx, s->last_pcr/300) < 0)
return -1;
return 1;
More information about the FFmpeg-soc
mailing list