diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-03-21 16:09:14 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-03-21 16:09:14 +0100 |
commit | 70eec8f432dcee5b9867ba01a26436a04a9a0423 (patch) | |
tree | c8880981559e31c14696486f7b300ed5c9cf0076 /libavcodec/h264_slice.c | |
parent | da7f4c32ab6bf517d4ef51297da46cf459479b22 (diff) | |
parent | 47a0d393504d6726c4a235951153bee0abb3f7d6 (diff) | |
download | ffmpeg-70eec8f432dcee5b9867ba01a26436a04a9a0423.tar.gz |
Merge commit '47a0d393504d6726c4a235951153bee0abb3f7d6'
* commit '47a0d393504d6726c4a235951153bee0abb3f7d6':
h264: move mb_skip_run into the per-slice context
Conflicts:
libavcodec/h264_cavlc.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264_slice.c')
-rw-r--r-- | libavcodec/h264_slice.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index 9591bea08e..71a55336d9 100644 --- a/libavcodec/h264_slice.c +++ b/libavcodec/h264_slice.c @@ -2400,7 +2400,7 @@ static int decode_slice(struct AVCodecContext *avctx, void *arg) H264Context *h = sl->h264; int lf_x_start = h->mb_x; - h->mb_skip_run = -1; + sl->mb_skip_run = -1; av_assert0(h->block_offset[15] == (4 * ((scan8[15] - scan8[0]) & 7) << h->pixel_shift) + 4 * h->linesize * ((scan8[15] - scan8[0]) >> 3)); @@ -2546,7 +2546,7 @@ static int decode_slice(struct AVCodecContext *avctx, void *arg) } } - if (get_bits_left(&h->gb) <= 0 && h->mb_skip_run <= 0) { + if (get_bits_left(&h->gb) <= 0 && sl->mb_skip_run <= 0) { tprintf(h->avctx, "slice end %d %d\n", get_bits_count(&h->gb), h->gb.size_in_bits); |