summaryrefslogtreecommitdiff
path: root/libavcodec/dcadec.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-10-02 12:43:44 +0200
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-10-04 13:06:27 +0200
commit4c160fa23996c05efcd952ccfac2359311d8a1bc (patch)
treefbb230bbba79c4d1fb8595a17c92d81cec5670a8 /libavcodec/dcadec.c
parentbb198c4997d5036f3bf91de51e44f807115677d0 (diff)
dcadec: Always initialize return variable
Silence an uninitialized warning from clang.
Diffstat (limited to 'libavcodec/dcadec.c')
-rw-r--r--libavcodec/dcadec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dcadec.c b/libavcodec/dcadec.c
index 47d3c444f0..33658288af 100644
--- a/libavcodec/dcadec.c
+++ b/libavcodec/dcadec.c
@@ -1147,7 +1147,7 @@ static float dca_dmix_code(unsigned code)
static int scan_for_extensions(AVCodecContext *avctx)
{
DCAContext *s = avctx->priv_data;
- int core_ss_end, ret;
+ int core_ss_end, ret = 0;
core_ss_end = FFMIN(s->frame_size, s->dca_buffer_size) * 8;