[FFmpeg-cvslog] aacdec: fix "may be used uninitialized" warning

Michael Niedermayer git at videolan.org
Sat May 26 21:17:30 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat May 26 21:03:58 2012 +0200| [a48b890392aa22033f182421ba9e3f3b3256461d] | committer: Michael Niedermayer

aacdec: fix "may be used uninitialized" warning

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

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

 libavcodec/aacdec.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c
index d4f48bb..b38ed7e 100644
--- a/libavcodec/aacdec.c
+++ b/libavcodec/aacdec.c
@@ -572,6 +572,8 @@ static void decode_channel_map(uint8_t layout_map[][3],
         case AAC_CHANNEL_LFE:
             syn_ele = TYPE_LFE;
             break;
+        default:
+            av_assert0(0);
         }
         layout_map[0][0] = syn_ele;
         layout_map[0][1] = get_bits(gb, 4);



More information about the ffmpeg-cvslog mailing list