[vlc-commits] aout: handle EAC3 -> A52 fallback
Thomas Guillem
git at videolan.org
Tue Oct 8 08:49:56 CEST 2019
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Oct 7 14:48:38 2019 +0200| [3295c3cddd5426c5c918d86ab201dcd0d83fad05] | committer: Thomas Guillem
aout: handle EAC3 -> A52 fallback
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3295c3cddd5426c5c918d86ab201dcd0d83fad05
---
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;
}
More information about the vlc-commits
mailing list