[FFmpeg-devel] [PATCH 1/2] avfilter: change ff_inlink_make_frame_writable() to take AVFrame* argument

Muhammad Faiz mfcc64 at gmail.com
Sat Jan 28 18:23:58 EET 2017


On 1/28/17, Nicolas George <george at nsup.org> wrote:
> Le nonidi 9 pluviôse, an CCXXV, Muhammad Faiz a écrit :
>> so the behavior will be similar to
>> av_frame_make_writable().
>
> The point was to move away from that. Who copies a struct when you can
> move a pointer?

So, if ff_inlink_make_frame_writable() takes AVFrame**, it will be
incompatible with framequeue framework, because it stores AVFrame*, so
it will contain dangling AVFrame*.

So, which one you choose? This patch or the previous patch that makes
frame writable manually?

Thank's


More information about the ffmpeg-devel mailing list