Commit 98161553 authored by Justin Ruggles's avatar Justin Ruggles

cosmetics: make a switch/case more compact

Originally committed as revision 25960 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent b84a211b
......@@ -281,16 +281,10 @@ static void compute_exp_strategy(uint8_t exp_strategy[AC3_MAX_BLOCKS][AC3_MAX_CH
while (j < AC3_MAX_BLOCKS && exp_strategy[j][ch] == EXP_REUSE)
j++;
switch (j - i) {
case 1:
exp_strategy[i][ch] = EXP_D45;
break;
case 1: exp_strategy[i][ch] = EXP_D45; break;
case 2:
case 3:
exp_strategy[i][ch] = EXP_D25;
break;
default:
exp_strategy[i][ch] = EXP_D15;
break;
case 3: exp_strategy[i][ch] = EXP_D25; break;
default: exp_strategy[i][ch] = EXP_D15; break;
}
i = j;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment