[vlc-commits] audiotrack: add support for E_AC3 passthrough on API 23
Thomas Guillem
git at videolan.org
Fri Feb 8 13:42:13 CET 2019
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Feb 8 13:36:32 2019 +0100| [0e7003e1ff42b7710bc315f11121968639967a0f] | committer: Thomas Guillem
audiotrack: add support for E_AC3 passthrough on API 23
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0e7003e1ff42b7710bc315f11121968639967a0f
---
modules/audio_output/audiotrack.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/audio_output/audiotrack.c b/modules/audio_output/audiotrack.c
index 00acd7b9d2..2dcababe47 100644
--- a/modules/audio_output/audiotrack.c
+++ b/modules/audio_output/audiotrack.c
@@ -1161,6 +1161,11 @@ StartPassthrough( JNIEnv *env, audio_output_t *p_aout )
return VLC_EGENERIC;
i_at_format = jfields.AudioFormat.ENCODING_AC3;
break;
+ case VLC_CODEC_EAC3:
+ if( !jfields.AudioFormat.has_ENCODING_E_AC3 )
+ return VLC_EGENERIC;
+ i_at_format = jfields.AudioFormat.ENCODING_E_AC3;
+ break;
case VLC_CODEC_DTS:
if( !jfields.AudioFormat.has_ENCODING_DTS )
return VLC_EGENERIC;
More information about the vlc-commits
mailing list