cosmetics: make a switch/case more compact
authorJustin Ruggles <justin.ruggles@gmail.com>
Tue, 14 Dec 2010 14:51:17 +0000 (14:51 +0000)
committerJustin Ruggles <justin.ruggles@gmail.com>
Tue, 14 Dec 2010 14:51:17 +0000 (14:51 +0000)
Originally committed as revision 25960 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/ac3enc.c

index e35286b09daf805f421457027685212583cd6d2e..e094ea830f7c396f656ab20384e131a02ea21a56 100644 (file)
@@ -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;
     }