From ed68085104c26dbb636df3c774216d4675ddf5e1 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 25 Oct 2012 00:35:55 +0200 Subject: [PATCH] asfdec: fixed signedness in comparission Fixes CID739864 Signed-off-by: Michael Niedermayer --- libavformat/asfdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c index cf8d5c7f2e..9f56818312 100644 --- a/libavformat/asfdec.c +++ b/libavformat/asfdec.c @@ -352,7 +352,7 @@ static int asf_read_stream_properties(AVFormatContext *s, int64_t size) if(!(asf->hdr.flags & 0x01)) { // if we aren't streaming... int64_t fsize = avio_size(pb); - if (fsize <= 0 || asf->hdr.file_size <= 0 || FFABS(fsize - asf->hdr.file_size) < 10000) + if (fsize <= 0 || (int64_t)asf->hdr.file_size <= 0 || FFABS(fsize - (int64_t)asf->hdr.file_size) < 10000) st->duration = asf->hdr.play_time / (10000000 / 1000) - start_time; }