avcodec/h264_cabac: use int instead of long for mbb_xy
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 1 Feb 2015 18:39:22 +0000 (19:39 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 1 Feb 2015 19:32:55 +0000 (20:32 +0100)
The mb address fits in int

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 592ba6ec106206f97133c9345313010c76361e12)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h264_cabac.c

index 7b1ee05..14b8e68 100644 (file)
@@ -1279,7 +1279,7 @@ void ff_h264_init_cabac_states(H264Context *h) {
 }
 
 static int decode_cabac_field_decoding_flag(H264Context *h) {
-    const long mbb_xy = h->mb_xy - 2L*h->mb_stride;
+    const int mbb_xy = h->mb_xy - 2*h->mb_stride;
 
     unsigned long ctx = 0;