summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-11-29 21:43:56 +0100
committerAnton Khirnov <anton@khirnov.net>2013-12-11 20:39:54 +0100
commit943135621830ac3857d3cf766cfc280a95bb3c13 (patch)
tree867bca0570773fc8c112ef641697b70232681af6 /libavcodec/utils.c
parenteb891b3114f499e96b9faddd0b0ae856345dfbd9 (diff)
lavc: deprecate avcodec_free_frame()
av_frame_free() should be used instead.
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 89d78ddda0..25f16c0a26 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -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)
{