]> git.sesse.net Git - ffmpeg/commitdiff
avcodec: Suppress deprecation warnings from avcodec_alloc_frame()
authorDiego Biurrun <diego@biurrun.de>
Tue, 4 Feb 2014 11:23:15 +0000 (03:23 -0800)
committerDiego Biurrun <diego@biurrun.de>
Tue, 4 Feb 2014 12:46:20 +0000 (13:46 +0100)
The function is itself obsolete and slated for removal.

libavcodec/utils.c

index 044413a50a19006899d5f1ab20785ea9f5a28fc9..46f339fafde7b7d37a6fe46771b1d7a5023692f6 100644 (file)
@@ -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;
 }