tools/target_dec_fuzzer: Add missing breaks
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 12 Aug 2019 06:51:09 +0000 (08:51 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 12 Aug 2019 06:51:09 +0000 (08:51 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tools/target_dec_fuzzer.c

index 2e10fbc54b1a7ae95aec38d84a1245e8295bafcd..507ac429fa51a1dbf82debb11a7e06951b717e82 100644 (file)
@@ -170,12 +170,12 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
     maxpixels = maxpixels_per_frame * maxiteration;
     switch (c->id) {
         // Allows a small input to generate gigantic output
-    case AV_CODEC_ID_QTRLE:     maxpixels /= 16;
-    case AV_CODEC_ID_GIF:       maxpixels /= 16;
+    case AV_CODEC_ID_QTRLE:     maxpixels /= 16;  break;
+    case AV_CODEC_ID_GIF:       maxpixels /= 16;  break;
         // Performs slow frame rescaling in C
-    case AV_CODEC_ID_GDV:       maxpixels /= 256;
+    case AV_CODEC_ID_GDV:       maxpixels /= 256; break;
         // Postprocessing in C
-    case AV_CODEC_ID_HNM4_VIDEO:maxpixels /= 128;
+    case AV_CODEC_ID_HNM4_VIDEO:maxpixels /= 128; break;
     }