[FFmpeg-devel] [PATCH 2/2] avcodec/dcadec: fix a -Wsometimes-unitialized on clang

Ganesh Ajjanagadde gajjanagadde at gmail.com
Sat Sep 19 07:00:42 CEST 2015


This fixes a genuine -Wsometimes-unitialized reported on clang, e.g
http://fate.ffmpeg.org/log.cgi?time=20150918181527&log=compile&slot=x86_64-darwin-clang-polly-vectorize-stripmine-3.7.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
---
 libavcodec/dcadec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/dcadec.c b/libavcodec/dcadec.c
index bc1222b..10efdda 100644
--- a/libavcodec/dcadec.c
+++ b/libavcodec/dcadec.c
@@ -1456,7 +1456,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;
 
-- 
2.5.2



More information about the ffmpeg-devel mailing list