changeset 5534:2836866dd7a1 libavformat

output a pcr as soon as possible, patch by Mike Scheutzow, scheutzow at alcatel-lucent dot com
author bcoudurier
date Wed, 13 Jan 2010 20:26:59 +0000
parents 5a51cbec408b
children dd79e1261e28
files mpegtsenc.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mpegtsenc.c	Wed Jan 13 20:20:05 2010 +0000
+++ b/mpegtsenc.c	Wed Jan 13 20:26:59 2010 +0000
@@ -485,6 +485,9 @@
     else
         ts->mux_rate = total_bit_rate;
 
+    // output a PCR as soon as possible
+    service->pcr_packet_count = service->pcr_packet_period;
+
     // adjust pcr
     ts->cur_pcr /= ts->mux_rate;