Commit b69dd88d authored by bcoudurier's avatar bcoudurier

output a pcr as soon as possible, patch by Mike Scheutzow, scheutzow at alcatel-lucent dot com

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21197 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 48dda941
...@@ -485,6 +485,9 @@ static int mpegts_write_header(AVFormatContext *s) ...@@ -485,6 +485,9 @@ static int mpegts_write_header(AVFormatContext *s)
else else
ts->mux_rate = total_bit_rate; ts->mux_rate = total_bit_rate;
// output a PCR as soon as possible
service->pcr_packet_count = service->pcr_packet_period;
// adjust pcr // adjust pcr
ts->cur_pcr /= ts->mux_rate; ts->cur_pcr /= ts->mux_rate;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment