[FFmpeg-soc] [soc]: r2379 - dvbmuxer/mpegtsenc.c
bcoudurier
subversion at mplayerhq.hu
Wed Jun 4 08:19:27 CEST 2008
Author: bcoudurier
Date: Wed Jun 4 08:19:26 2008
New Revision: 2379
Log:
count in bytes
Modified:
dvbmuxer/mpegtsenc.c
Modified: dvbmuxer/mpegtsenc.c
==============================================================================
--- dvbmuxer/mpegtsenc.c (original)
+++ dvbmuxer/mpegtsenc.c Wed Jun 4 08:19:26 2008
@@ -537,7 +537,7 @@ static void mpegts_write_pes(AVFormatCon
ts_st->cc = (ts_st->cc + 1) & 0xf;
if (write_pcr) {
/* add header and pcr bytes to pcr according to specs */
- pcr = ts->cur_pcr + (32+56) * 90000 / ts->mux_rate;
+ pcr = ts->cur_pcr + (4+7)*8*90000LL / ts->mux_rate;
*q++ = 7; /* AFC length */
*q++ = 0x10; /* flags: PCR present */
*q++ = pcr >> 25;
More information about the FFmpeg-soc
mailing list