]> git.sesse.net Git - vlc/commitdiff
Add an assert for impossible-to-reach frequency codes.
authorSteinar Gunderson <sgunderson@bigfoot.com>
Mon, 27 Sep 2010 11:21:35 +0000 (13:21 +0200)
committerSteinar Gunderson <sgunderson@bigfoot.com>
Mon, 27 Sep 2010 11:21:35 +0000 (13:21 +0200)
modules/codec/lpcm.c

index 839d463175200bb7a4c3b3c5f804007eed064f0c..f71ad997c1049201964baad6eb4e794acaf884ff 100644 (file)
@@ -525,6 +525,8 @@ static block_t *EncodeFrames( encoder_t *p_enc, aout_buffer_t *p_aout_buf )
     case 32000:
         i_freq_code = 3;
         break;
+    default:
+        assert(0);
     }
 
     int i_bytes_consumed = 0;