vp9: write uveob as 16-bit value for 16x16/32x32 transforms.
authorRonald S. Bultje <rsbultje@gmail.com>
Fri, 25 Apr 2014 11:51:39 +0000 (07:51 -0400)
committerRonald S. Bultje <rsbultje@gmail.com>
Fri, 25 Apr 2014 11:51:39 +0000 (07:51 -0400)
This fixes make fate-vp9-00-quantizer-01 THREADS=2.

libavcodec/vp9.c

index cbc885b..ccdf78f 100644 (file)
@@ -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; \
+            } \
         } \
     }