summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/avcodec.h2
-rw-r--r--libavcodec/utils.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index ea095c97c6..c39355ef02 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -2604,10 +2604,12 @@ unsigned avcodec_version(void);
*/
void avcodec_init(void);
+#if LIBAVCODEC_VERSION_MAJOR < 53
/**
* @deprecated Deprecated in favor of avcodec_register().
*/
attribute_deprecated void register_avcodec(AVCodec *codec);
+#endif
/**
* Register the codec \p codec and initialize libavcodec.
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 4f35f759c0..b1579aec3b 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -98,10 +98,12 @@ void avcodec_register(AVCodec *codec)
codec->next = NULL;
}
+#if LIBAVCODEC_VERSION_MAJOR < 53
void register_avcodec(AVCodec *codec)
{
avcodec_register(codec);
}
+#endif
void avcodec_set_dimensions(AVCodecContext *s, int width, int height){
s->coded_width = width;