Commit 47c74c4e authored by Thomas Guillem's avatar Thomas Guillem

vlc_aout: add AOUT_FMT_HDMI

And remove EAC3 from AOUT_FMT_SPDIF.
We don't want to implement new codecs like EAC3 on old audio output. These
old audio output will continue to use the AOUT_FMT_SPDIF define.
parent 49807ea1
......@@ -77,9 +77,13 @@
( ((p_format)->i_format == VLC_CODEC_SPDIFL) \
|| ((p_format)->i_format == VLC_CODEC_SPDIFB) \
|| ((p_format)->i_format == VLC_CODEC_A52) \
|| ((p_format)->i_format == VLC_CODEC_EAC3) \
|| ((p_format)->i_format == VLC_CODEC_DTS) )
/* TODO: add VLC_CODEC_MLP, VLC_CODEC_TRUEHD */
#define AOUT_FMT_HDMI( p_format ) \
( (p_format)->i_format == VLC_CODEC_EAC3 \
)
/* Values used for the audio-channels object variable */
#define AOUT_VAR_CHAN_UNSET 0 /* must be zero */
#define AOUT_VAR_CHAN_STEREO 1
......
......@@ -207,7 +207,7 @@ static void aout_DecSilence (audio_output_t *aout, mtime_t length, mtime_t pts)
size_t frames = (fmt->i_rate * length) / CLOCK_FREQ;
block_t *block;
if (AOUT_FMT_SPDIF(fmt))
if (AOUT_FMT_SPDIF(fmt) || AOUT_FMT_HDMI(fmt))
block = block_Alloc (4 * frames);
else
block = block_Alloc (frames * fmt->i_bytes_per_frame);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment