diff options
author | Edward Hervey <bilboed@bilboed.com> | 2009-02-28 11:43:56 +0100 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2009-02-28 11:43:56 +0100 |
commit | 38d3b76d1b779527371e1750082b561e3c07239b (patch) | |
tree | a31fac2f8cba0bac0af15a2952e6f86e4fbc23eb /gst | |
parent | 922e6428f61083a4b749059c342b655a509e9206 (diff) | |
download | gst-plugins-bad-38d3b76d1b779527371e1750082b561e3c07239b.tar.gz gst-plugins-bad-38d3b76d1b779527371e1750082b561e3c07239b.tar.bz2 gst-plugins-bad-38d3b76d1b779527371e1750082b561e3c07239b.zip |
nsf: Don't write further than the limits of the table (size is 75, as defined in the header)
gcc 4.3.3 found this one, I'm impressed.
Diffstat (limited to 'gst')
-rw-r--r-- | gst/nsf/fmopl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/nsf/fmopl.c b/gst/nsf/fmopl.c index 6e71e5b6..88b89ad6 100644 --- a/gst/nsf/fmopl.c +++ b/gst/nsf/fmopl.c @@ -18,7 +18,8 @@ #include <stdlib.h> #include <string.h> #include <stdarg.h> - /*#include "driver.h" *//* use M.A.M.E. */ +/*#include "driver.h" */ +/* use M.A.M.E. */ #include "fmopl.h" #include <math.h> @@ -594,7 +595,7 @@ init_timetables (FM_OPL * OPL, int ARRATE, int DRRATE) OPL->AR_TABLE[i] = (INT32) (rate / ARRATE); OPL->DR_TABLE[i] = (INT32) (rate / DRRATE); } - for (i = 60; i < 76; i++) { + for (i = 60; i < 75; i++) { OPL->AR_TABLE[i] = EG_AED - 1; OPL->DR_TABLE[i] = OPL->DR_TABLE[60]; } |