lavc: deprecate avcodec_free_frame()
av_frame_free() should be used instead.
This commit is contained in:
@@ -827,22 +827,12 @@ AVFrame *avcodec_alloc_frame(void)
|
||||
|
||||
return frame;
|
||||
}
|
||||
#endif
|
||||
|
||||
void avcodec_free_frame(AVFrame **frame)
|
||||
{
|
||||
AVFrame *f;
|
||||
|
||||
if (!frame || !*frame)
|
||||
return;
|
||||
|
||||
f = *frame;
|
||||
|
||||
if (f->extended_data != f->data)
|
||||
av_freep(&f->extended_data);
|
||||
|
||||
av_freep(frame);
|
||||
av_frame_free(frame);
|
||||
}
|
||||
#endif
|
||||
|
||||
int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *codec, AVDictionary **options)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user