[FFmpeg-cvslog] aacdec: add default case in channel layout
Vittorio Giovara
git at videolan.org
Tue Nov 4 22:46:32 CET 2014
ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Thu Oct 30 00:52:01 2014 +0000| [77ab341c0c6cdf2bd437bb48d429e797d1e60da2] | committer: Vittorio Giovara
aacdec: add default case in channel layout
Bug-Id: CID 732291
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=77ab341c0c6cdf2bd437bb48d429e797d1e60da2
---
libavcodec/aacdec.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c
index 4bdf52f..d2d51f5 100644
--- a/libavcodec/aacdec.c
+++ b/libavcodec/aacdec.c
@@ -624,6 +624,9 @@ static void decode_channel_map(uint8_t layout_map[][3],
case AAC_CHANNEL_LFE:
syn_ele = TYPE_LFE;
break;
+ default:
+ // AAC_CHANNEL_OFF has no channel map
+ return;
}
layout_map[0][0] = syn_ele;
layout_map[0][1] = get_bits(gb, 4);
More information about the ffmpeg-cvslog
mailing list