From: James Almer Date: Tue, 8 Jun 2021 20:08:41 +0000 (-0300) Subject: a52: don't call avcodec_register_all() on newer libavocdec versions X-Git-Tag: v1.2.6~27 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=8473252ae0c247ea663296ae3e51e9c00db8c0be;p=alsa-plugins.git a52: don't call avcodec_register_all() on newer libavocdec versions It's no longer available starting with LIBAVCODEC_VERSION_MAJOR == 59. BugLink: https://github.com/alsa-project/alsa-plugins/pull/23 Signed-off-by: James Almer Signed-off-by: Jaroslav Kysela --- diff --git a/a52/pcm_a52.c b/a52/pcm_a52.c index 816e5e3..14e444d 100644 --- a/a52/pcm_a52.c +++ b/a52/pcm_a52.c @@ -1004,7 +1004,9 @@ SND_PCM_PLUGIN_DEFINE_FUNC(a52) #ifndef USE_AVCODEC_FRAME avcodec_init(); #endif +#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(59, 0, 0) avcodec_register_all(); +#endif rec->codec = avcodec_find_encoder_by_name("ac3_fixed"); if (rec->codec == NULL)