aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-08 16:48:41 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-08 16:48:41 +0200
commit62a9725bc95ef3c5101e2a9e74668cc1ecbd8819 (patch)
treeece8a1e719c3068bada9d35b447dc9a611e3f2ba /libavcodec
parent7e79d72c28718ec60e8e76f7fdb5d66e9f2fa028 (diff)
downloadffmpeg-62a9725bc95ef3c5101e2a9e74668cc1ecbd8819.tar.gz
avcodec/dcadec: add an assert to silence a uninitialized variable warning
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/dcadec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/dcadec.c b/libavcodec/dcadec.c
index 23d1dd939b..6a9dfa34d4 100644
--- a/libavcodec/dcadec.c
+++ b/libavcodec/dcadec.c
@@ -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);