[FFmpeg-cvslog] avcodec: Suppress deprecation warnings from avcodec_alloc_frame()

Diego Biurrun git at videolan.org
Wed Feb 5 01:29:49 CET 2014


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Tue Feb  4 03:23:15 2014 -0800| [190d4a447bc6ae4ecbbbb1c70f482a9c1fb6026c] | committer: Diego Biurrun

avcodec: Suppress deprecation warnings from avcodec_alloc_frame()

The function is itself obsolete and slated for removal.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=190d4a447bc6ae4ecbbbb1c70f482a9c1fb6026c
---

 libavcodec/utils.c |    2 ++
 1 file changed, 2 insertions(+)

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



More information about the ffmpeg-cvslog mailing list