[Libav-user] How to keep AVFrame data after codec close

Hendrik Leppkes h.leppkes at gmail.com
Thu Dec 5 13:45:48 CET 2013


On Thu, Dec 5, 2013 at 1:33 PM, Eric Beuque <eric.beuque at gmail.com> wrote:
>
> Thank you for your answer, i saw that av_frame_ref/av_frame_unref is
> avaliable in FFMpeg 2.0, but i'm using 1.1.2, and I don't find any way to
> use reference couting in this version. Is this feature available in 1.1.x
> throught some others functions?
>
>

No, reference counting is a new feature in 2.0
You could implement it yourself by providing a custom get_buffer
implementation, but it requires a lot of plumbing code. Consider
upgrading to 2.0? :)


More information about the Libav-user mailing list