[FFmpeg-cvslog] dcadec: Always initialize return variable
Vittorio Giovara
git at videolan.org
Mon Oct 5 11:19:58 CEST 2015
ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Fri Oct 2 12:43:44 2015 +0200| [4c160fa23996c05efcd952ccfac2359311d8a1bc] | committer: Vittorio Giovara
dcadec: Always initialize return variable
Silence an uninitialized warning from clang.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4c160fa23996c05efcd952ccfac2359311d8a1bc
---
libavcodec/dcadec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/dcadec.c b/libavcodec/dcadec.c
index 47d3c44..3365828 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;
More information about the ffmpeg-cvslog
mailing list