avcodec/dcadec: add an assert to silence a uninitialized variable warning

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-05-08 16:48:41 +02:00
parent 7e79d72c28
commit 62a9725bc9
1 changed files with 2 additions and 0 deletions

View 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);