[FFmpeg-soc] [soc]: r2380 - dvbmuxer/mpegtsenc.c

bcoudurier subversion at mplayerhq.hu
Wed Jun 4 08:20:36 CEST 2008


Author: bcoudurier
Date: Wed Jun  4 08:20:36 2008
New Revision: 2380

Log:
miss last byte of pcr extension in calculation

Modified:
   dvbmuxer/mpegtsenc.c

Modified: dvbmuxer/mpegtsenc.c
==============================================================================
--- dvbmuxer/mpegtsenc.c	(original)
+++ dvbmuxer/mpegtsenc.c	Wed Jun  4 08:20:36 2008
@@ -580,7 +580,7 @@ static void mpegts_write_pes(AVFormatCon
         payload += len;
         payload_size -= len;
         put_buffer(s->pb, buf, TS_PACKET_SIZE);
-        ts->cur_pcr += TS_PACKET_SIZE*8*90000LL / ts->mux_rate;
+        ts->cur_pcr += (TS_PACKET_SIZE+1)*8*90000LL / ts->mux_rate;
     }
     put_flush_packet(s->pb);
 }



More information about the FFmpeg-soc mailing list