summaryrefslogtreecommitdiff
path: root/libavcodec/h264_cabac.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-01 19:39:22 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-02-01 20:00:10 +0100
commit592ba6ec106206f97133c9345313010c76361e12 (patch)
tree1ac307e4d630380ad05584ecc95f047d10194cb1 /libavcodec/h264_cabac.c
parentf1f7f5903ab49b84789af5341492afbaba808a70 (diff)
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>
Diffstat (limited to 'libavcodec/h264_cabac.c')
-rw-r--r--libavcodec/h264_cabac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264_cabac.c b/libavcodec/h264_cabac.c
index 692cf1d874..41e0f867c0 100644
--- a/libavcodec/h264_cabac.c
+++ b/libavcodec/h264_cabac.c
@@ -1282,7 +1282,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;