From 190d4a447bc6ae4ecbbbb1c70f482a9c1fb6026c Mon Sep 17 00:00:00 2001
From: Diego Biurrun <diego@biurrun.de>
Date: Tue, 4 Feb 2014 03:23:15 -0800
Subject: [PATCH] avcodec: Suppress deprecation warnings from
 avcodec_alloc_frame()

The function is itself obsolete and slated for removal.
---
 libavcodec/utils.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 044413a50a1..46f339fafde 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;
 }
-- 
GitLab