[FFmpeg-devel] avformat/utils : estimate_timings_from_pts - increase retrys

Gaullier Nicolas nicolas.gaullier at arkena.com
Mon Feb 5 19:52:25 EET 2018


The number of extra retries to get more than a single duration is currently limited to 1 (see commit 77a0df4b5).
This patch raises this number of retries to 4 (amongst the overall 6 max retries).
In my experience, the need for 2 extra retries is something commonplace.
3 extra retries is not far away and we have an exemple on ffmpeg.org :
http://samples.ffmpeg.org/archive/extension/ts/mpegts+mpeg2video+ac3++mpegts_multiple_ts_packets_pmt_pid_0x50.ts

I have encountered at least one time a file (SPTS) that requires 4 extra retries, this is why I propose to set this value.

Thank you for your review
Nicolas Gaullier
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avformat-utils-estimate_timings_from_pts-increase-re.patch
Type: application/octet-stream
Size: 2137 bytes
Desc: 0001-avformat-utils-estimate_timings_from_pts-increase-re.patch
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180205/c1da3f59/attachment.obj>


More information about the ffmpeg-devel mailing list