aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2016-12-05 15:11:06 -0500
committerVittorio Giovara <vittorio.giovara@gmail.com>2017-03-23 10:09:13 +0100
commit6dca24cd1d570b806b5a3fdaef9d3c8608942a81 (patch)
tree34c8ceb10d6b45a4fc6688501a8514af95c2cbcc
parent1146bb3babca3973e88005d267cd06210d6ac075 (diff)
downloadffmpeg-6dca24cd1d570b806b5a3fdaef9d3c8608942a81.tar.gz
lavc: Drop deprecated way of setting codec dimensions
Deprecated in 10/2013.
-rw-r--r--libavcodec/avcodec.h8
-rw-r--r--libavcodec/utils.c7
-rw-r--r--libavcodec/version.h3
3 files changed, 0 insertions, 18 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 3a007fad1a..11a3280eb8 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -4937,14 +4937,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
-
/**
* Put a string representing the codec tag codec_tag in buf.
*
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 8a481dd025..6cef65083d 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -125,13 +125,6 @@ unsigned avcodec_get_edge_width(void)
}
#endif
-#if FF_API_SET_DIMENSIONS
-void avcodec_set_dimensions(AVCodecContext *s, int width, int height)
-{
- ff_set_dimensions(s, width, height);
-}
-#endif
-
int ff_set_dimensions(AVCodecContext *s, int width, int height)
{
int ret = av_image_check_size(width, height, 0, s);
diff --git a/libavcodec/version.h b/libavcodec/version.h
index 1f06483211..a12c322f49 100644
--- a/libavcodec/version.h
+++ b/libavcodec/version.h
@@ -47,9 +47,6 @@
* the public API and may change, break or disappear at any time.
*/
-#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