summaryrefslogtreecommitdiffstats
path: root/audio/decode/ad.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-12-09 18:53:24 +0100
committerwm4 <wm4@nowhere>2012-12-11 00:37:54 +0100
commit2dd2d9bcfcf57b9921c9ef360746dd59c45574fd (patch)
treefc470ed6d914e9b04e8b0fb33f51ce0346b86804 /audio/decode/ad.c
parent58f3b7548588c224099fa059868116be003678bd (diff)
downloadmpv-2dd2d9bcfcf57b9921c9ef360746dd59c45574fd.tar.bz2
mpv-2dd2d9bcfcf57b9921c9ef360746dd59c45574fd.tar.xz
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.
Diffstat (limited to 'audio/decode/ad.c')
-rw-r--r--audio/decode/ad.c2
1 files changed, 0 insertions, 2 deletions
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