dcadec: Always initialize return variable
authorVittorio Giovara <vittorio.giovara@gmail.com>
Fri, 2 Oct 2015 10:43:44 +0000 (12:43 +0200)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Sun, 4 Oct 2015 11:06:27 +0000 (13:06 +0200)
Silence an uninitialized warning from clang.

libavcodec/dcadec.c

index 47d3c44..3365828 100644 (file)
@@ -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;