summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-12-09 12:00:57 +0100
committerAnton Khirnov <anton@khirnov.net>2013-12-11 20:39:55 +0100
commitd7b3ee9a3a03ab88d61a5895fbdbc6689f4dd671 (patch)
tree01a2faaf61e1439806e6b919e00331ca8a4d6b1a /libavcodec/utils.c
parent598ce4ab4f1893e0661fc038101487e511937877 (diff)
lavc: deprecate avcodec_get_frame_defaults().
Also bump libavcodec micro and add an APIchanges entry saying that av_frame_* should now be used instead of the lavc AVFrame functions.
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index e078a11408..1fa9cb88d2 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -801,6 +801,7 @@ enum AVPixelFormat avcodec_default_get_format(struct AVCodecContext *s, const en
return fmt[0];
}
+#if FF_API_AVFRAME_LAVC
void avcodec_get_frame_defaults(AVFrame *frame)
{
if (frame->extended_data != frame->data)
@@ -815,7 +816,6 @@ 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));