[FFmpeg-devel] [PATCH] Fix for PCR accuracy in MPEG2-TS

Baptiste Coudurier baptiste.coudurier
Fri Dec 3 11:58:44 CET 2010

On 12/3/10 1:16 AM, Tomas H?rdin wrote:
> On Thu, 2010-12-02 at 07:48 -0800, Yogeesh Kori wrote:
>> Hi,
>> When a TS packet with the PCR without any payload is created, the PCR
>> value is used from the calculation at the end of the previous packet. It
>> is not taking the location of the PCR data in the current packet. It
>> does when inserting a PCR in the PES packet. This causes a slight
>> inaccuracy in the PCR.
>> Yogeesh Kori
> Well, PCR is already quite inaccurate since it's measured in 90 kHz, not
> 27 MHz. And it'll still drift with this patch.
> Baptiste, can we perhaps get my PCR accuracy patch applied while I
> figure out a prettier way to fix the PCR interval thing?

Humm well, ok, thomas go ahead and apply your patch.

Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org

More information about the ffmpeg-devel mailing list