[FFmpeg-cvslog] svq3: fix cast type to be independant of "sizeof(int)"
Michael Niedermayer
git at videolan.org
Tue Dec 11 12:57:10 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Dec 11 10:22:01 2012 +0100| [7dee5f04acdbae8256982a94e61b78928805f224] | committer: Michael Niedermayer
svq3: fix cast type to be independant of "sizeof(int)"
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7dee5f04acdbae8256982a94e61b78928805f224
---
libavcodec/svq3.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c
index 5a2fcff..46561a3 100644
--- a/libavcodec/svq3.c
+++ b/libavcodec/svq3.c
@@ -225,7 +225,7 @@ static inline int svq3_decode_block(GetBitContext *gb, DCTELEM *block,
for (limit = (16 >> intra); index < 16; index = limit, limit += 8) {
for (; (vlc = svq3_get_ue_golomb(gb)) != 0; index++) {
- if ((int)vlc < 0)
+ if ((int32_t)vlc < 0)
return -1;
sign = (vlc & 1) ? 0 : -1;
More information about the ffmpeg-cvslog
mailing list