summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-11-09 10:09:21 +0100
committerAnton Khirnov <anton@khirnov.net>2013-11-16 12:44:50 +0100
commitb9fb59d2ab05fdfe89d3fb0d7ecbbd91e560f57d (patch)
tree85fb175e2248a216457235b57a402c93859c8d99 /libavcodec/utils.c
parent5b9c3b4505206143d85398c1410949319fa1180f (diff)
lavc: deprecate avcodec_alloc_frame().
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index da50e4268c..d21ca0eece 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -815,6 +815,7 @@ void avcodec_get_frame_defaults(AVFrame *frame)
frame->extended_data = frame->data;
}
+#if FF_API_AVFRAME_LAVC
AVFrame *avcodec_alloc_frame(void)
{
AVFrame *frame = av_mallocz(sizeof(AVFrame));
@@ -826,6 +827,7 @@ AVFrame *avcodec_alloc_frame(void)
return frame;
}
+#endif
void avcodec_free_frame(AVFrame **frame)
{