avcodec/dcadec: add an assert to silence a uninitialized variable warning
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 8 May 2014 14:48:41 +0000 (16:48 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 8 May 2014 14:48:41 +0000 (16:48 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dcadec.c

index 23d1dd9..6a9dfa3 100644 (file)
@@ -2064,6 +2064,8 @@ static void dca_exss_parse_header(DCAContext *s)
         }
     }
 
+    av_assert0(num_assets > 0); // silence a warning
+
     for (i = 0; i < num_assets; i++)
         asset_size[i] = get_bits_long(&s->gb, 16 + 4 * blownup);