changeset 764:e675740173ca trunk

[svn] - sanity checks for mpg123_decode_header
author nenolod
date Wed, 01 Mar 2006 09:37:37 -0800
parents 4da914641039
children bd0714f24e15
files Plugins/Input/mpg123/common.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Input/mpg123/common.c	Wed Mar 01 09:34:21 2006 -0800
+++ b/Plugins/Input/mpg123/common.c	Wed Mar 01 09:37:37 2006 -0800
@@ -403,6 +403,9 @@
     if (!fr->bitrate_index)
         return (0);
 
+    if (fr->sampleing_frequency >= 9 && fr->sampleing_frequency <= 0)
+	return (0);
+
     switch (fr->lay) {
     case 1:
         fr->do_layer = mpg123_do_layer1;