[Ffmpeg-devel] [PATCH] ffmpeg bug, catch AV_NOPTS_VALUE before it gets rescaled

Michael Niedermayer michaelni
Wed Dec 6 16:34:56 CET 2006


On Wed, Dec 06, 2006 at 01:08:45PM +0100, Andy Parkins wrote:
> libavformat/utils.c
>  * Phew, this one took a while to find.  write_frame() calls
>    truncate_ts(), which masks off the excess bits in the timestamps;
>    however, the special case of a timestamp set to AV_NOPTS_VALUE should
>    set it apart from normal truncation - this value is being used as a
>    flag and shouldn't be truncated (as it loses its flag properties).
>    It's important that it's retained because the oformat->write_packet()
>    is allowed to check for it

patch looks ok

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If you really think that XML is the answer, then you definitly missunderstood
the question -- Attila Kinali

More information about the ffmpeg-devel mailing list