summaryrefslogtreecommitdiffstats
path: root/audio/decode/dec_audio.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-12-23 18:03:16 +0100
committerwm4 <wm4@nowhere>2016-12-23 18:10:07 +0100
commitc560f6ff0ab9aec70e53a268e2ff388a85ec3ca0 (patch)
tree04e7afab982139d2351f00814be7ee127d5290dc /audio/decode/dec_audio.h
parent17d6ba7f776d6fd0ebc7a9881a999299c3fa9471 (diff)
downloadmpv-c560f6ff0ab9aec70e53a268e2ff388a85ec3ca0.tar.bz2
mpv-c560f6ff0ab9aec70e53a268e2ff388a85ec3ca0.tar.xz
audio: change how spdif codecs are selected
Remove ad_spdif from the normal codec list, and select it explicitly. One goal was to decouple this from the normal codec selection, so they're less entangled and the decoder selection code can be simplified in the far future. This means spdif codec selection is now done explicitly via select_spdif_codec(). We can also remove the weird requirements on "dts" and "dts-hd" for the --audio-spdif option, and it can just do the right thing. Now both video and audio codecs consist of a single codec family each, vd_lavc and ad_lavc.
Diffstat (limited to 'audio/decode/dec_audio.h')
-rw-r--r--audio/decode/dec_audio.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/decode/dec_audio.h b/audio/decode/dec_audio.h
index 7bc8b00b0f..ebe7c8ae5b 100644
--- a/audio/decode/dec_audio.h
+++ b/audio/decode/dec_audio.h
@@ -59,4 +59,7 @@ int audio_get_frame(struct dec_audio *d_audio, struct mp_audio **out_frame);
void audio_reset_decoding(struct dec_audio *d_audio);
+// ad_spdif.c
+struct mp_decoder_list *select_spdif_codec(const char *codec, const char *pref);
+
#endif /* MPLAYER_DEC_AUDIO_H */