Fixes silly CBR/VBR inversion bug from 7954065c77
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Thu, 8 Sep 2011 20:26:54 +0000 (16:26 -0400)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Thu, 8 Sep 2011 20:26:54 +0000 (16:26 -0400)
src/opus_decoder.c

index 99ae48d..55be0a7 100644 (file)
@@ -548,7 +548,7 @@ static int opus_packet_parse_impl(const unsigned char *data, int len,
          return OPUS_INVALID_PACKET;
       /* VBR flag is bit 7 */
       cbr = !(ch&0x80);
-      if (cbr)
+      if (!cbr)
       {
          /* VBR case */
          last_size = len;