[FFmpeg-soc] [soc]: r576 - dvbmuxer/muxer_dev/mpegtsenc.c

realsun subversion at mplayerhq.hu
Wed Aug 1 05:42:53 CEST 2007


Author: realsun
Date: Wed Aug  1 05:42:53 2007
New Revision: 576

Log:
adjust pcr calculation

Modified:
   dvbmuxer/muxer_dev/mpegtsenc.c

Modified: dvbmuxer/muxer_dev/mpegtsenc.c
==============================================================================
--- dvbmuxer/muxer_dev/mpegtsenc.c	(original)
+++ dvbmuxer/muxer_dev/mpegtsenc.c	Wed Aug  1 05:42:53 2007
@@ -554,7 +554,7 @@ static void mpegts_write_pes(AVFormatCon
                 ts_st->service->pcr_packet_freq && dts != AV_NOPTS_VALUE) {
                 ts_st->service->pcr_packet_count = 0;
                 write_pcr = 1;
-                pcr = dts + packet_count * TS_PACKET_SIZE* 8*90000LL / ts->mux_rate;
+                pcr = ts->last_pcr + packet_count * TS_PACKET_SIZE* 8*90000LL / ts->mux_rate;
             }
         }
         /* prepare packet header */



More information about the FFmpeg-soc mailing list