summaryrefslogtreecommitdiff
path: root/gst/adpcmdec
diff options
context:
space:
mode:
authorAlessandro Decina <alessandro.d@gmail.com>2009-09-23 12:32:54 +0200
committerAlessandro Decina <alessandro.d@gmail.com>2009-09-23 12:34:47 +0200
commita17393fd3483b4b12e7a55c2558a568860b1b62b (patch)
treef79af0be961b924a60170130d6b818963bf2ab35 /gst/adpcmdec
parent9c155f10f30a7b8f8dd60a582b4ff7c6b8f6d1fe (diff)
downloadgstreamer-plugins-bad-a17393fd3483b4b12e7a55c2558a568860b1b62b.tar.gz
Fix warnings with gcc 4.0.1.
Diffstat (limited to 'gst/adpcmdec')
-rw-r--r--gst/adpcmdec/adpcmdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/adpcmdec/adpcmdec.c b/gst/adpcmdec/adpcmdec.c
index c317bc0db..a5b6a3140 100644
--- a/gst/adpcmdec/adpcmdec.c
+++ b/gst/adpcmdec/adpcmdec.c
@@ -338,7 +338,7 @@ adpcmdec_decode_ima_block (ADPCMDec * dec, int n_samples, guint8 * data,
for (channel = 0; channel < dec->channels; channel++) {
samples[channel] = read_sample (data + channel * 4);
- stepindex[channel] = CLAMP (data[channel * 4 + 2], 0, 88);
+ stepindex[channel] = MIN (data[channel * 4 + 2], 88);
if (data[channel * 4 + 3] != 0) {
GST_WARNING_OBJECT (dec, "Synchronisation error");