asfdec: fixed signedness in comparission

Fixes CID739864
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-10-25 00:35:55 +02:00
parent 0008e0d632
commit ed68085104
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}