summaryrefslogtreecommitdiff
path: root/libavformat/asfdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-25 00:35:55 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-25 00:35:55 +0200
commited68085104c26dbb636df3c774216d4675ddf5e1 (patch)
tree57ec85c1289f582b08a3ed2cae38e4aa2676c3a5 /libavformat/asfdec.c
parent0008e0d6321de1a6a51dafd28103d9fd5a9be325 (diff)
asfdec: fixed signedness in comparission
Fixes CID739864 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/asfdec.c')
-rw-r--r--libavformat/asfdec.c2
1 files changed, 1 insertions, 1 deletions
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;
}