summaryrefslogtreecommitdiff
path: root/libavcodec/h264.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
commita67f8ae9a2c8529bf6a635e8ca4e3483592708b1 (patch)
tree795c7ce7355345c1163ef0bf37291e1840b46b85 /libavcodec/h264.c
parent5c8280c3075dd54f26752c3a1185647578421703 (diff)
h264: move mvd_table into the per-slice context
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 4a3ee34a63..cc3af6f039 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -426,6 +426,9 @@ int ff_h264_alloc_tables(H264Context *h)
16 * row_mb_num * sizeof(uint8_t), fail);
FF_ALLOCZ_OR_GOTO(h->avctx, h->mvd_table[1],
16 * row_mb_num * sizeof(uint8_t), fail);
+ h->slice_ctx[0].mvd_table[0] = h->mvd_table[0];
+ h->slice_ctx[0].mvd_table[1] = h->mvd_table[1];
+
FF_ALLOCZ_OR_GOTO(h->avctx, h->direct_table,
4 * big_mb_num * sizeof(uint8_t), fail);
FF_ALLOCZ_OR_GOTO(h->avctx, h->list_counts,