From 8aa3edb6afaf22b424a57e13fa97de0c01b206ed Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 18 Feb 2009 18:40:33 +0100 Subject: mp4ff: include cleanup Don't include limits.h, use GLib constants instead. --- src/decoder/mp4ff_plugin.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/decoder/mp4ff_plugin.c') 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 -#include +#include #include -#include + #include #include @@ -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); -- cgit v1.2.3