diff options
author | Mike Scheutzow <scheutzow@alcatel-lucent.com> | 2010-01-13 23:26:59 +0300 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2010-01-13 23:26:59 +0300 |
commit | 6b18a3f5ba80fb01116220fc94246d916d6afbe1 (patch) | |
tree | 6a6cf1c1021afbdc327a55ca35a62e8e5a552f71 | |
parent | 906c16a11a9219803fc083a7b7b759ed2604057a (diff) |
output a pcr as soon as possible, patch by Mike Scheutzow, scheutzow at alcatel-lucent dot com
Originally committed as revision 21197 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/mpegtsenc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index e2830683e8..7e78559e04 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -485,6 +485,9 @@ static int mpegts_write_header(AVFormatContext *s) 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; |