]> git.sesse.net Git - ffmpeg/commitdiff
avcodec: unschedule removing some functions with FF_API_COPY_CONTEXT
authorJames Almer <jamrial@gmail.com>
Thu, 25 Feb 2021 20:17:33 +0000 (17:17 -0300)
committerJames Almer <jamrial@gmail.com>
Thu, 25 Feb 2021 20:35:13 +0000 (17:35 -0300)
These functions were never deprecated. The merge from commit 6988cf2969
included them by mistake.

Found-by: mkver
Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/avcodec.h

index 5df6a8aedce05cb603b575788442bcfa7111966c..ddca770cc425d85028b7a1095ecfccaa8f27f33f 100644 (file)
@@ -2770,7 +2770,6 @@ int avcodec_get_context_defaults3(AVCodecContext *s, const AVCodec *codec);
  */
 const AVClass *avcodec_get_class(void);
 
-#if FF_API_COPY_CONTEXT
 /**
  * Get the AVClass for AVFrame. It can be used in combination with
  * AV_OPT_SEARCH_FAKE_OBJ for examining options.
@@ -2787,6 +2786,7 @@ const AVClass *avcodec_get_frame_class(void);
  */
 const AVClass *avcodec_get_subtitle_rect_class(void);
 
+#if FF_API_COPY_CONTEXT
 /**
  * Copy the settings of the source AVCodecContext into the destination
  * AVCodecContext. The resulting destination codec context will be