diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-02-01 19:39:22 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-01 20:33:00 +0100 |
commit | 5f2902bdc76c4f166af365b9941bc6ed9b79198d (patch) | |
tree | 6c17dc1ae2b464689ab2e35d1c213ff5311ac309 | |
parent | ef3687998fb46d7d936bb6023f25c1dc324a4640 (diff) | |
download | ffmpeg-5f2902bdc76c4f166af365b9941bc6ed9b79198d.tar.gz |
avcodec/h264_cabac: use int instead of long for mbb_xy
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>
-rw-r--r-- | libavcodec/h264_cabac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264_cabac.c b/libavcodec/h264_cabac.c index 435343c989..1f4175152d 100644 --- a/libavcodec/h264_cabac.c +++ b/libavcodec/h264_cabac.c @@ -1278,7 +1278,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; |