[Ffmpeg-devel] [PATCH] Bug in av_estimate_timings_from_pts

Michael Niedermayer michaelni
Sun Mar 18 18:53:06 CET 2007


Hi

On Sun, Mar 18, 2007 at 02:11:13PM -0000, Wolfram Gloger wrote:
> Hi,
> 
> The recent timestamp changes to libavformat/utils.c exposed a
> longstanding bug:
> 
> av_estimate_timings_from_pts() flushes the packet queue but doesn't
> reset the streams' cur_dts values.  This can lead to a fatal "error,
> non monotone timestamps ..." message later, because the out-of-date
> cur_dts values are used to compute some packet's dts.
> 
> The appended patch fixes this by calling av_read_frame_flush(), which
> also eliminates code duplication.
> 
> The additional hunk gives more detailed error messages.

looks ok

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Democracy is the form of government in which you can choose your dictator
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070318/5a8dd467/attachment.pgp>



More information about the ffmpeg-devel mailing list