[FFmpeg-devel] [PATCH] [RFC] libavformat/mpegts: Prevent wrapping of PTS & DTS
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.
* 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...
Size: 3438 bytes
Desc: not available
More information about the ffmpeg-devel