[Libav-user] How to allocate memory to store the image data (when use av_frame_alloc) ?

Anton Shekhovtsov shekh.anton at gmail.com
Thu Feb 5 11:24:05 CET 2015


2015-02-05 10:52 GMT+02:00 林其益 <antony.lin at topviewcorp.com>:

>  Dear Libav:
>
> ...
>
>   2. Could I allocate my own memory to the data[] array to AVFrame (not
> allocate by the ffmpeg library)?
>
> ......
>
>
>
> Best Regards,
>
> *Antony Lin*
>
>
>
>
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
You need to read comment for AVCodecContext::get_buffer2
You set this handler to allocate AVFrame memory instead of default handler.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20150205/cc10d75d/attachment.html>


More information about the Libav-user mailing list