Dear Libav:

I don't understand how to let the follow thing work.

You need to read comment for AVCodecContext::get_buffer2

You set this handler to allocate AVFrame memory instead of default handler.

But now , I use a new thread to memcpy the data of AVFrame. Cause memory copy 
data  is implement on the other thread (different from decode), So it can solve 
my problem now.

 

Best Regards,

Antony Lin

 

From: [email protected] [mailto:[email protected]] On 
Behalf Of Anton Shekhovtsov
Sent: Thursday, February 05, 2015 6:24 PM
To: This list is about using libavcodec, libavformat, libavutil, libavdevice 
and libavfilter.
Subject: Re: [Libav-user] How to allocate memory to store the image data (when 
use av_frame_alloc) ?

 

 

 

2015-02-05 10:52 GMT+02:00 林其益 <[email protected]>:

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
[email protected]
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.

_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to