summaryrefslogtreecommitdiff
path: root/libavcodec/vp9.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2014-04-25 07:51:39 -0400
committerRonald S. Bultje <rsbultje@gmail.com>2014-04-25 07:51:39 -0400
commit6d69f9f37689c999815a65a2d99999fad3a41705 (patch)
treec0cf230d5bf2a41100374fd58db1d0244b59c3f8 /libavcodec/vp9.c
parent31f2357fd0e273365b1ae667e191638937e188e3 (diff)
vp9: write uveob as 16-bit value for 16x16/32x32 transforms.
This fixes make fate-vp9-00-quantizer-01 THREADS=2.
Diffstat (limited to 'libavcodec/vp9.c')
-rw-r--r--libavcodec/vp9.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
index cbc885b77d..ccdf78fb97 100644
--- a/libavcodec/vp9.c
+++ b/libavcodec/vp9.c
@@ -2258,7 +2258,11 @@ static void decode_coeffs(AVCodecContext *ctx)
16 * step * step, c, e, p, a[x] + l[y], \
uvscan, uvnb, uv_band_counts, qmul[1]); \
a[x] = l[y] = !!res; \
- s->uveob[pl][n] = res; \
+ if (step >= 4) { \
+ AV_WN16A(&s->uveob[pl][n], res); \
+ } else { \
+ s->uveob[pl][n] = res; \
+ } \
} \
}