From 2dd2d9bcfcf57b9921c9ef360746dd59c45574fd Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 9 Dec 2012 18:53:24 +0100 Subject: audio/decode: remove ad_pcm and use ad_lavc for PCM Since libavcodec doesn't have a "generic" PCM decoder, we have to go out of out way to make it look like ad_lavc provides one: make it provide a pseudo "pcm" decoder, which maps some format tags manually to the individual libavcodec PCM decoders. Format tags which uniquely map to one libavcodec could be mapped via codecs.conf. Since defining these in tag_map[] is much shorter (one line vs. a full codec entry in codecs.conf), and since we need tag_map[] anyway, we don't use codecs.conf for these. ad_pcm is evil because it still does partial packet reads (with demux_read_data()), and it's redundant to libavcodec anyway. --- audio/decode/ad.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'audio/decode/ad.c') diff --git a/audio/decode/ad.c b/audio/decode/ad.c index ac344636e6..f091914244 100644 --- a/audio/decode/ad.c +++ b/audio/decode/ad.c @@ -33,7 +33,6 @@ extern const ad_functions_t mpcodecs_ad_mpg123; extern const ad_functions_t mpcodecs_ad_ffmpeg; -extern const ad_functions_t mpcodecs_ad_pcm; extern const ad_functions_t mpcodecs_ad_dvdpcm; extern const ad_functions_t mpcodecs_ad_spdif; @@ -43,7 +42,6 @@ const ad_functions_t * const mpcodecs_ad_drivers[] = &mpcodecs_ad_mpg123, #endif &mpcodecs_ad_ffmpeg, - &mpcodecs_ad_pcm, &mpcodecs_ad_dvdpcm, &mpcodecs_ad_spdif, NULL -- cgit v1.2.3