[Ffmpeg-devel] avcodec_flush_buffers

Ivan Kalvachev ikalvachev
Tue Dec 20 19:49:48 CET 2005


2005/12/20, Raphael HUCK <raphaelh at nist.gov>:
> Hi,
>
> could anyone tell me how and when to use "avcodec_flush_buffers" ?
>
> I'm trying to read a video, and then another one, which crashes the
> program. It seems that I have to use "avcodec_flush_buffers", but I'm
> not sure how to do it.
>
> Any help appreciated. Thanks in advance,

Flush buffers is created to flush decode buffers on seeking and
prevent block noise caused by B-frames referencing.

You'd better close and reopen the decoder for a new file.
Anyway lavc should never crash even if you feed it with total garbage,
so you'd better report the point of crash.





More information about the ffmpeg-devel mailing list