[vlc-commits] araw decoder: reject too high samplerates

Jean-Baptiste Kempf git at videolan.org
Sun Feb 12 14:32:35 CET 2017


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Feb 12 14:32:14 2017 +0100| [d02bb093513d359483f802a2d7bd5701e0badb7d] | committer: Jean-Baptiste Kempf

araw decoder: reject too high samplerates

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

 modules/codec/araw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/araw.c b/modules/codec/araw.c
index 28add6f..0c46f94 100644
--- a/modules/codec/araw.c
+++ b/modules/codec/araw.c
@@ -252,7 +252,7 @@ static int DecoderOpen( vlc_object_t *p_this )
         return VLC_EGENERIC;
     }
 
-    if( p_dec->fmt_in.audio.i_rate <= 0 )
+    if( p_dec->fmt_in.audio.i_rate <= 0 || p_dec->fmt_in.audio.i_rate > 384000 )
     {
         msg_Err( p_dec, "bad samplerate: %d Hz", p_dec->fmt_in.audio.i_rate );
         return VLC_EGENERIC;



More information about the vlc-commits mailing list