summaryrefslogtreecommitdiff
path: root/libavcodec/svq3.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2015-01-17 22:28:46 +0100
committerAnton Khirnov <anton@khirnov.net>2015-03-21 11:27:14 +0100
commit47a0d393504d6726c4a235951153bee0abb3f7d6 (patch)
treecd95f60982a26521bbdc356d84161d05b674af6f /libavcodec/svq3.c
parent9951907f6fc37a8d41566dbee09f7c15ff587de6 (diff)
h264: move mb_skip_run into the per-slice context
Diffstat (limited to 'libavcodec/svq3.c')
-rw-r--r--libavcodec/svq3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c
index 316699c37c..d8aefa633e 100644
--- a/libavcodec/svq3.c
+++ b/libavcodec/svq3.c
@@ -821,11 +821,11 @@ static int svq3_decode_slice_header(AVCodecContext *avctx)
if ((header & 0x9F) == 2) {
i = (h->mb_num < 64) ? 6 : (1 + av_log2(h->mb_num - 1));
- h->mb_skip_run = get_bits(&h->gb, i) -
+ sl->mb_skip_run = get_bits(&h->gb, i) -
(h->mb_y * h->mb_width + h->mb_x);
} else {
skip_bits1(&h->gb);
- h->mb_skip_run = 0;
+ sl->mb_skip_run = 0;
}
sl->slice_num = get_bits(&h->gb, 8);