summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/ad.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-09-02 19:30:34 +0200
committerwm4 <wm4@nowhere>2012-09-18 21:04:47 +0200
commitee65b39cbe8a1df6bf4b2eaeef413c881ae16456 (patch)
tree6877c6130a51a67ae12f08272a18c8548dc05ba5 /libmpcodecs/ad.c
parent53bfaecd40aa7b34dcc9c90064e36f2ffe227fc0 (diff)
downloadmpv-ee65b39cbe8a1df6bf4b2eaeef413c881ae16456.tar.bz2
mpv-ee65b39cbe8a1df6bf4b2eaeef413c881ae16456.tar.xz
ad_pcm: add back raw decoder
This was removed in commit 6a26b4a66504. Add it back, because it was needed by demuxer_rawaudio and for PCM audio with demuxers other than demux_lavf. (In practice, this broke rawaudio and PCM-in-Matroska only.) Unlike with raw video, there is no single raw audio "decoder" in libavcodec. Instead of trying to mess raw audio input into ad_ffmpeg using a table to map audio formats to the respective libavcodec decoders, it seems advantageous to simply add back ad_pcm.
Diffstat (limited to 'libmpcodecs/ad.c')
-rw-r--r--libmpcodecs/ad.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpcodecs/ad.c b/libmpcodecs/ad.c
index aea9badadf..c4066caaa4 100644
--- a/libmpcodecs/ad.c
+++ b/libmpcodecs/ad.c
@@ -33,6 +33,7 @@
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_spdif;
const ad_functions_t * const mpcodecs_ad_drivers[] =
@@ -41,6 +42,7 @@ const ad_functions_t * const mpcodecs_ad_drivers[] =
&mpcodecs_ad_mpg123,
#endif
&mpcodecs_ad_ffmpeg,
+ &mpcodecs_ad_pcm,
&mpcodecs_ad_spdif,
NULL
};