a52: switch to AV_CODEC_ID identifiers
PATCH 1/1 a52: switch to AV_CODEC_ID identifiers
Fixes build with latest libavcodec versions.
--- a52/pcm_a52.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
a52/pcm_a52.c +4 -1
@@ -58,6 +58,9 @@#endif #endif +#if LIBAVCODEC_VERSION_INT <AV_VERSION_INT (54 ,25 ,0 ) +#define AV_CODEC_ID_AC3 CODEC_ID_AC3 +#endif struct a52_ctx {snd_pcm_ioplug_t io;
@@ -916,7 +919,7 @@ SND_PCM_PLUGIN_DEFINE_FUNC(a52)if (rec->codec ==NULL ) rec->codec =avcodec_find_encoder_by_name ("ac3" );if (rec->codec ==NULL ) - rec->codec =avcodec_find_encoder (CODEC_ID_AC3 ); + rec->codec =avcodec_find_encoder (AV_CODEC_ID_AC3 );if (rec->codec ==NULL ) {SNDERR ("Cannot find codec engine" ); err = -EINVAL ;
Signature · 1 line
1.7.10.4
Takashi Iwai
AppliedAt Thu, 9 Jan 2014 21:14:17 +0100,
Quoted 2 lines · Anton Khirnov
Fixes build with latest libavcodec versions.
Thanks, applied.
Takashi
Quoted 35 lines
--- a52/pcm_a52.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)a52/pcm_a52.c +4
-1@@ -58,6 +58,9 @@#endif #endif +#if LIBAVCODEC_VERSION_INT <AV_VERSION_INT (54 ,25 ,0 ) +#define AV_CODEC_ID_AC3 CODEC_ID_AC3 +#endif struct a52_ctx {snd_pcm_ioplug_t io;@@ -916,7 +919,7 @@ SND_PCM_PLUGIN_DEFINE_FUNC(a52)if (rec->codec ==NULL ) rec->codec =avcodec_find_encoder_by_name ("ac3" );if (rec->codec ==NULL ) - rec->codec =avcodec_find_encoder (CODEC_ID_AC3 ); + rec->codec =avcodec_find_encoder (AV_CODEC_ID_AC3 );if (rec->codec ==NULL ) {SNDERR ("Cannot find codec engine" ); err = -EINVAL ;Signature · 6 lines
1.7.10.4 _______________________________________________ Alsa-devel mailing list [email protected] http://mailman.alsa-project.org/mailman/listinfo/alsa-devel