From 005c414e5f2a0ace3756da767d3920ac98cb5c76 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Sat, 24 Jul 2021 15:39:01 +0100 Subject: Document intentional fallthroughs + fix harmless unintended ones Change-Id: I1ca5b1027ec30cbf61093bab35b980196ed14e6b --- lib/rbcodec/codecs/liba52/downmix.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/rbcodec/codecs/liba52/downmix.c') diff --git a/lib/rbcodec/codecs/liba52/downmix.c b/lib/rbcodec/codecs/liba52/downmix.c index dd2867cb92..277b04d4c8 100644 --- a/lib/rbcodec/codecs/liba52/downmix.c +++ b/lib/rbcodec/codecs/liba52/downmix.c @@ -498,6 +498,7 @@ void a52_downmix (sample_t * samples, int acmod, int output, case CONVERT (A52_2F1R, A52_MONO): if (slev == 0) goto mix_2to1; + /* fallthrough */ case CONVERT (A52_3F, A52_MONO): mix_3to1: mix3to1 (samples); @@ -506,9 +507,11 @@ void a52_downmix (sample_t * samples, int acmod, int output, case CONVERT (A52_3F1R, A52_MONO): if (slev == 0) goto mix_3to1; + /* fallthrough */ case CONVERT (A52_2F2R, A52_MONO): if (slev == 0) goto mix_2to1; + /* fallthrough */ mix4to1 (samples); break; -- cgit v1.2.3