[vlc-commits] codec: opus: fix oob read (cid #1062575)
Francois Cartegnie
git at videolan.org
Thu Nov 28 10:04:23 CET 2013
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Nov 27 20:06:37 2013 +0100| [f09ddd30cb1f37cb8a1d38887754e031d0512a4f] | committer: Francois Cartegnie
codec: opus: fix oob read (cid #1062575)
Opus supports up to 255 channels
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f09ddd30cb1f37cb8a1d38887754e031d0512a4f
---
modules/codec/opus.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/opus.c b/modules/codec/opus.c
index 8802d49..de6e3d0 100644
--- a/modules/codec/opus.c
+++ b/modules/codec/opus.c
@@ -297,7 +297,7 @@ static int ProcessInitialHeader( decoder_t *p_dec, ogg_packet *p_oggpacket )
p_dec->fmt_out.audio.i_channels = p_header->channels;
p_dec->fmt_out.audio.i_rate = 48000;
- if( p_header->channels>2 )
+ if( p_header->channels>2 && p_header->channels<9 )
{
static const uint32_t *pi_ch[6] = { pi_3channels_in, pi_4channels_in,
pi_5channels_in, pi_6channels_in,
More information about the vlc-commits
mailing list