[vlc-commits] audiotrack: add support for E_AC3 passthrough on API 23

Thomas Guillem git at videolan.org
Fri Feb 8 13:56:16 CET 2019


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Feb  8 13:36:32 2019 +0100| [aaa1db8c87f4872732c13dd2d4a743e57f5322f3] | committer: Thomas Guillem

audiotrack: add support for E_AC3 passthrough on API 23

(cherry picked from commit 0e7003e1ff42b7710bc315f11121968639967a0f)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=aaa1db8c87f4872732c13dd2d4a743e57f5322f3
---

 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 d5dcd12850..23becdc718 100644
--- a/modules/audio_output/audiotrack.c
+++ b/modules/audio_output/audiotrack.c
@@ -1011,6 +1011,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