summaryrefslogtreecommitdiff
path: root/libavcodec/ac3enc.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2010-12-14 14:51:17 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2010-12-14 14:51:17 +0000
commit98161553376478753292cf4fea6fd1cd10b0be2c (patch)
treea6e837452f61388148e6c0e32ec2550a621a406b /libavcodec/ac3enc.c
parentb84a211bc83a784d3c57b530f44fbfb7d45e4b3b (diff)
cosmetics: make a switch/case more compact
Originally committed as revision 25960 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3enc.c')
-rw-r--r--libavcodec/ac3enc.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c
index e35286b09d..e094ea830f 100644
--- a/libavcodec/ac3enc.c
+++ b/libavcodec/ac3enc.c
@@ -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;
}