[FFmpeg-cvslog] asfdec: fixed signedness in comparission
Michael Niedermayer
git at videolan.org
Thu Oct 25 01:39:23 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Oct 25 00:35:55 2012 +0200| [ed68085104c26dbb636df3c774216d4675ddf5e1] | committer: Michael Niedermayer
asfdec: fixed signedness in comparission
Fixes CID739864
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ed68085104c26dbb636df3c774216d4675ddf5e1
---
libavformat/asfdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index cf8d5c7..9f56818 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;
}
More information about the ffmpeg-cvslog
mailing list