]> git.sesse.net Git - ffmpeg/commitdiff
Merge commit '6dca24cd1d570b806b5a3fdaef9d3c8608942a81'
authorJames Almer <jamrial@gmail.com>
Sun, 22 Oct 2017 02:59:53 +0000 (23:59 -0300)
committerJames Almer <jamrial@gmail.com>
Sun, 22 Oct 2017 02:59:53 +0000 (23:59 -0300)
* commit '6dca24cd1d570b806b5a3fdaef9d3c8608942a81':
  lavc: Drop deprecated way of setting codec dimensions

Merged-by: James Almer <jamrial@gmail.com>
libavcodec/avcodec.h
libavcodec/utils.c
libavcodec/version.h

index e02445e3833c887c4318ed93a9ee6dff2319b8c1..40c8fab3696dc59360ee5a2bb9698425c92df94f 100644 (file)
@@ -5638,14 +5638,6 @@ enum AVPixelFormat avcodec_default_get_format(struct AVCodecContext *s, const en
  * @}
  */
 
-#if FF_API_SET_DIMENSIONS
-/**
- * @deprecated this function is not supposed to be used from outside of lavc
- */
-attribute_deprecated
-void avcodec_set_dimensions(AVCodecContext *s, int width, int height);
-#endif
-
 #if FF_API_TAG_STRING
 /**
  * Put a string representing the codec tag codec_tag in buf.
index 95786e8b544755356669cc91e1f6634824c6f8ab..05f4302ad11d6dfaddfd5a1d841a8fad4c81834b 100644 (file)
@@ -198,16 +198,6 @@ unsigned avcodec_get_edge_width(void)
 }
 #endif
 
-#if FF_API_SET_DIMENSIONS
-void avcodec_set_dimensions(AVCodecContext *s, int width, int height)
-{
-    int ret = ff_set_dimensions(s, width, height);
-    if (ret < 0) {
-        av_log(s, AV_LOG_WARNING, "Failed to set dimensions %d %d\n", width, height);
-    }
-}
-#endif
-
 int ff_set_dimensions(AVCodecContext *s, int width, int height)
 {
     int ret = av_image_check_size2(width, height, s->max_pixels, AV_PIX_FMT_NONE, 0, s);
index 95be1ed4cd64f9539d96ab591b8f5b54bd7afc43..fd334e83fd937e15f9b0113e57d1bb1526d844bc 100644 (file)
@@ -54,9 +54,6 @@
 #ifndef FF_API_LOWRES
 #define FF_API_LOWRES            (LIBAVCODEC_VERSION_MAJOR < 59)
 #endif
-#ifndef FF_API_SET_DIMENSIONS
-#define FF_API_SET_DIMENSIONS    (LIBAVCODEC_VERSION_MAJOR < 58)
-#endif
 #ifndef FF_API_DEBUG_MV
 #define FF_API_DEBUG_MV          (LIBAVCODEC_VERSION_MAJOR < 58)
 #endif