aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vp9mvs.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2013-11-23 12:10:12 -0500
committerAnton Khirnov <anton@khirnov.net>2016-08-11 10:54:20 +0200
commit5b995452a63ed754545a0ac90be79fac63b3390d (patch)
tree05824dd434f49a4330c30f14932b66d1108ec693 /libavcodec/vp9mvs.c
parentbc6e0b64a9100652c1ce52292408d8fd79930d53 (diff)
downloadffmpeg-5b995452a63ed754545a0ac90be79fac63b3390d.tar.gz
vp9: allocate 'b', 'block/uvblock' and 'eob/uveob' dynamically.
This will be needed for frame threading. Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/vp9mvs.c')
-rw-r--r--libavcodec/vp9mvs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vp9mvs.c b/libavcodec/vp9mvs.c
index a4ce84c5f3..5edcb19039 100644
--- a/libavcodec/vp9mvs.c
+++ b/libavcodec/vp9mvs.c
@@ -64,7 +64,7 @@ static void find_ref_mvs(VP9Context *s,
[BS_4x4] = { { 0, -1 }, { -1, 0 }, { -1, -1 }, { 0, -2 },
{ -2, 0 }, { -1, -2 }, { -2, -1 }, { -2, -2 } },
};
- VP9Block *const b = &s->b;
+ VP9Block *b = s->b;
int row = b->row, col = b->col, row7 = b->row7;
const int8_t (*p)[2] = mv_ref_blk_off[b->bs];
#define INVALID_MV 0x80008000U
@@ -279,7 +279,7 @@ static av_always_inline int read_mv_component(VP9Context *s, int idx, int hp)
void ff_vp9_fill_mv(VP9Context *s, VP56mv *mv, int mode, int sb)
{
- VP9Block *const b = &s->b;
+ VP9Block *b = s->b;
if (mode == ZEROMV) {
memset(mv, 0, sizeof(*mv) * 2);