summaryrefslogtreecommitdiff
path: root/libavcodec/h264.h
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
commita67f8ae9a2c8529bf6a635e8ca4e3483592708b1 (patch)
tree795c7ce7355345c1163ef0bf37291e1840b46b85 /libavcodec/h264.h
parent5c8280c3075dd54f26752c3a1185647578421703 (diff)
h264: move mvd_table into the per-slice context
Diffstat (limited to 'libavcodec/h264.h')
-rw-r--r--libavcodec/h264.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h
index 7ced3b58e0..cd5788a0aa 100644
--- a/libavcodec/h264.h
+++ b/libavcodec/h264.h
@@ -402,6 +402,8 @@ typedef struct H264SliceContext {
///< check that i is not too large or ensure that there is some unused stuff after mb
int16_t mb_padding[256 * 2];
+ uint8_t (*mvd_table[2])[2];
+
/**
* Cabac
*/
@@ -991,7 +993,7 @@ static av_always_inline void write_back_motion_list(H264Context *h,
AV_COPY128(mv_dst + 2 * b_stride, mv_src + 8 * 2);
AV_COPY128(mv_dst + 3 * b_stride, mv_src + 8 * 3);
if (CABAC(h)) {
- uint8_t (*mvd_dst)[2] = &h->mvd_table[list][FMO ? 8 * h->mb_xy
+ uint8_t (*mvd_dst)[2] = &sl->mvd_table[list][FMO ? 8 * h->mb_xy
: h->mb2br_xy[h->mb_xy]];
uint8_t(*mvd_src)[2] = &h->mvd_cache[list][scan8[0]];
if (IS_SKIP(mb_type)) {