[FFmpeg-devel] [PATCH] vp9: write uveob as 16-bit value for 16x16/32x32 transforms.

Ronald S. Bultje rsbultje at gmail.com
Fri Apr 25 14:12:41 CEST 2014


This fixes make fate-vp9-00-quantizer-01 THREADS=2.
---
 libavcodec/vp9.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
index cbc885b..ccdf78f 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; \
+            } \
         } \
     }
 
-- 
1.8.5.5



More information about the ffmpeg-devel mailing list