diff options
author | Diego Biurrun <diego@biurrun.de> | 2014-02-04 03:23:15 -0800 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2014-02-04 13:46:20 +0100 |
commit | 190d4a447bc6ae4ecbbbb1c70f482a9c1fb6026c (patch) | |
tree | a12c85e68ddb83a94a679702782b53c57b08a6bb /libavcodec/utils.c | |
parent | d509ae5be0a9bac35a4cedbe68b774a74446bb27 (diff) | |
download | ffmpeg-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.c | 2 |
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; } |