[FFmpeg-devel] [PATCH] [RFC] libavformat/mpegts: Prevent wrapping of PTS & DTS

DeHackEd git at dehacked.net
Sun Jun 12 00:55:32 CEST 2016


Presently the mpegts demuxer passes the timestamps from received packets directly to the output AVPackets. 2^33 / 90000
seconds is about 26.5 hours at which point applications start having a fit, and that's assuming timestamps begin at time 0.

So here's a first revision of a patch to fix that issue.

Improvements possible:
* In its current form intended for continuous sources like over-the-air receivers and multicast sources. When used on
files there will be problems with seeking.
* Constants such as 2^33 could be turned into macros for readability
-------------- next part --------------
A non-text attachment was scrubbed...
Name: new-pts-dts.patch
Type: text/x-patch
Size: 3438 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160611/39ae54be/attachment.bin>


More information about the ffmpeg-devel mailing list