[vlc-devel] [PATCH V2 7/8] aout: handle EAC3 -> A52 fallback

Thomas Guillem thomas at gllm.fr
Mon Oct 7 15:46:25 CEST 2019


---
 src/audio_output/output.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/audio_output/output.c b/src/audio_output/output.c
index 93eb56fe05..21b02d7898 100644
--- a/src/audio_output/output.c
+++ b/src/audio_output/output.c
@@ -580,6 +580,14 @@ int aout_OutputNew (audio_output_t *aout)
                     formats[1] = VLC_CODEC_DTS;
                 }
                 break;
+            case VLC_CODEC_A52:
+                if (owner->input_profile > 0)
+                {
+                    assert(ARRAY_SIZE(formats) >= 3);
+                    formats[0] = VLC_CODEC_EAC3;
+                    formats[1] = VLC_CODEC_A52;
+                }
+                break;
             default:
                 break;
         }
-- 
2.20.1



More information about the vlc-devel mailing list