[FFmpeg-devel] [PATCH] Fix first_pcr initial update
Maksym Veremeyenko
verem at m1stereo.tv
Tue Nov 2 17:36:37 EET 2021
On 02.11.2021 16:59, lance.lmwang at gmail.com wrote:
[...]
>> + if (!ts->first_dts_checked && dts != AV_NOPTS_VALUE) {
>> + ts->first_pcr += dts * 300;
>> + ts->first_dts_checked = 1;
>> + }
>> +
>
> I think it's not same as the old code, the first_pcr will add extra delay if copyts is
> 0.
>
proposed patch extend updating ts->first_pcr not only when copyts is 0
but when copyts is 1 (*-mpegts_copyts 1* specified)
very similar issue i found at
http://ffmpeg.org/pipermail/ffmpeg-devel/2019-April/242766.html
--
Maksym Veremeyenko
More information about the ffmpeg-devel
mailing list