[vlc-commits] audiotrack: add dtshd passthrough support
Thomas Guillem
git at videolan.org
Wed Mar 8 15:03:17 CET 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Mar 8 11:23:01 2017 +0100| [4184eab30c789791975ad754fd9bc2cbccd85d81] | committer: Thomas Guillem
audiotrack: add dtshd passthrough support
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4184eab30c789791975ad754fd9bc2cbccd85d81
---
modules/audio_output/audiotrack.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/modules/audio_output/audiotrack.c b/modules/audio_output/audiotrack.c
index b7ba093..8d124d3 100644
--- a/modules/audio_output/audiotrack.c
+++ b/modules/audio_output/audiotrack.c
@@ -958,9 +958,17 @@ StartPassthrough( JNIEnv *env, audio_output_t *p_aout )
p_sys->fmt.i_bytes_per_frame = 16;
break;
#endif
+ case VLC_CODEC_DTS:
+ if( b_dtshd && p_sys->fmt.i_rate >= 48000 )
+ {
+ p_sys->fmt.i_rate = 192000;
+ p_sys->fmt.i_bytes_per_frame = 16;
+ }
+ else
+ p_sys->fmt.i_bytes_per_frame = 4;
+ break;
case VLC_CODEC_EAC3:
p_sys->fmt.i_rate = 192000;
- case VLC_CODEC_DTS:
case VLC_CODEC_A52:
p_sys->fmt.i_bytes_per_frame = 4;
break;
More information about the vlc-commits
mailing list