aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2014-02-04 03:23:15 -0800
committerDiego Biurrun <diego@biurrun.de>2014-02-04 13:46:20 +0100
commit190d4a447bc6ae4ecbbbb1c70f482a9c1fb6026c (patch)
treea12c85e68ddb83a94a679702782b53c57b08a6bb /libavcodec/utils.c
parentd509ae5be0a9bac35a4cedbe68b774a74446bb27 (diff)
downloadffmpeg-190d4a447bc6ae4ecbbbb1c70f482a9c1fb6026c.tar.gz
avcodec: Suppress deprecation warnings from avcodec_alloc_frame()
The function is itself obsolete and slated for removal.
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 044413a50a..46f339fafd 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -853,7 +853,9 @@ AVFrame *avcodec_alloc_frame(void)
if (frame == NULL)
return NULL;
+FF_DISABLE_DEPRECATION_WARNINGS
avcodec_get_frame_defaults(frame);
+FF_ENABLE_DEPRECATION_WARNINGS
return frame;
}