[FFmpeg-cvslog] avcodec/options: Silence deprecated warning about coded_frame

Michael Niedermayer git at videolan.org
Thu Aug 6 12:57:11 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu Aug  6 12:39:37 2015 +0200| [a368920eefbfe3e741108e3b52ff0be69e8bd8c0] | committer: Michael Niedermayer

avcodec/options: Silence deprecated warning about coded_frame

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 libavcodec/options.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavcodec/options.c b/libavcodec/options.c
index 37f3792..7154c9c 100644
--- a/libavcodec/options.c
+++ b/libavcodec/options.c
@@ -213,7 +213,11 @@ int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src)
     dest->slice_offset    = NULL;
     dest->hwaccel         = NULL;
     dest->internal        = NULL;
+#if FF_API_CODED_FRAME
+FF_DISABLE_DEPRECATION_WARNINGS
     dest->coded_frame     = NULL;
+FF_ENABLE_DEPRECATION_WARNINGS
+#endif
 
     /* reallocate values that should be allocated separately */
     dest->extradata       = NULL;



More information about the ffmpeg-cvslog mailing list