aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-02-18 18:40:33 +0100
committerMax Kellermann <max@duempel.org>2009-02-18 18:40:33 +0100
commit8aa3edb6afaf22b424a57e13fa97de0c01b206ed (patch)
tree09a9f85db67f36706b072fb4354582aa0a841d74
parent51c59f622872c7fb028c121cc74300de34a80783 (diff)
downloadmpd-8aa3edb6afaf22b424a57e13fa97de0c01b206ed.tar.gz
mpd-8aa3edb6afaf22b424a57e13fa97de0c01b206ed.tar.xz
mpd-8aa3edb6afaf22b424a57e13fa97de0c01b206ed.zip
mp4ff: include cleanup
Don't include limits.h, use GLib constants instead.
-rw-r--r--src/decoder/mp4ff_plugin.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/decoder/mp4ff_plugin.c b/src/decoder/mp4ff_plugin.c
index db9632f4d..ec60bc0bd 100644
--- a/src/decoder/mp4ff_plugin.c
+++ b/src/decoder/mp4ff_plugin.c
@@ -19,11 +19,11 @@
#include "../decoder_api.h"
#include "config.h"
-#include "mp4ff.h"
+#include <glib.h>
-#include <limits.h>
+#include <mp4ff.h>
#include <faad.h>
-#include <glib.h>
+
#include <stdlib.h>
#include <unistd.h>
@@ -208,7 +208,7 @@ mp4_decode(struct decoder *mpd_decoder, struct input_stream *input_stream)
total_time = ((float)file_time) / scale;
num_samples = mp4ff_num_samples(mp4fh, track);
- if (num_samples > (long)(INT_MAX / sizeof(float))) {
+ if (num_samples > (long)(G_MAXINT / sizeof(float))) {
g_warning("Integer overflow.\n");
faacDecClose(decoder);
mp4ff_close(mp4fh);