mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-03-04 10:07:53 +00:00
cosmetics: make a switch/case more compact
Originally committed as revision 25960 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
b84a211bc8
commit
9816155337
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user