[FFmpeg-cvslog] dca: Fix uninitialized variable warnings.

Michael Niedermayer git at videolan.org
Sun Jan 8 00:30:38 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Jan  7 23:59:14 2012 +0100| [53918a1c54b49e76c3ca517e2caada8372995712] | committer: Michael Niedermayer

dca: Fix uninitialized variable warnings.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=53918a1c54b49e76c3ca517e2caada8372995712
---

 libavcodec/dca.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/dca.c b/libavcodec/dca.c
index 8622587..cf61a16 100644
--- a/libavcodec/dca.c
+++ b/libavcodec/dca.c
@@ -1439,11 +1439,11 @@ static int dca_exss_parse_asset_header(DCAContext *s)
 {
     int header_pos = get_bits_count(&s->gb);
     int header_size;
-    int channels;
+    int channels = 0;
     int embedded_stereo = 0;
     int embedded_6ch    = 0;
     int drc_code_present;
-    int extensions_mask;
+    int av_uninit(extensions_mask);
     int i, j;
 
     if (get_bits_left(&s->gb) < 16)



More information about the ffmpeg-cvslog mailing list