blob: 87a1f02287591a86d1fbba1d9ee8544caa8bb733 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
diff -ur gst-plugins-good-0.10.7.orig/ext/speex/gstspeexdec.c gst-plugins-good-0.10.7/ext/speex/gstspeexdec.c
--- gst-plugins-good-0.10.7.orig/ext/speex/gstspeexdec.c 2007-05-26 18:25:18.000000000 +0300
+++ gst-plugins-good-0.10.7/ext/speex/gstspeexdec.c 2008-04-14 20:02:41.000000000 +0300
@@ -507,7 +507,7 @@
if (!dec->header)
goto no_header;
- if (dec->header->mode >= SPEEX_NB_MODES)
+ if (dec->header->mode >= SPEEX_NB_MODES || dec->header->mode < 0)
goto mode_too_old;
dec->mode = (SpeexMode *) speex_mode_list[dec->header->mode];
|