]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/options.c
lavc: deprecate avcodec_copy_context()
[ffmpeg] / libavcodec / options.c
index 49c8aea030436e7f213b9c0ab41417c0141605ca..50bacd3df85d9cf0b6ad8165c305460b23ba5181 100644 (file)
@@ -155,6 +155,7 @@ void avcodec_free_context(AVCodecContext **pavctx)
     av_freep(pavctx);
 }
 
+#if FF_API_COPY_CONTEXT
 int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src)
 {
     const AVCodec *orig_codec = dest->codec;
@@ -225,6 +226,7 @@ fail:
 #endif
     return AVERROR(ENOMEM);
 }
+#endif
 
 const AVClass *avcodec_get_class(void)
 {