avfilter/vf_uspp: Fix currently unused input frame dimensions
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 10 May 2017 19:54:31 +0000 (21:54 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 17 May 2017 18:35:20 +0000 (20:35 +0200)
Found-by: Nicolas
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 942036e97c8b149ce2f3ec6e7cbc990df8713d0c)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/vf_uspp.c

index f963254..41f7216 100644 (file)
@@ -227,8 +227,8 @@ static void filter(USPPContext *p, uint8_t *dst[3], uint8_t *src[3],
         p->frame->quality = ff_norm_qscale((qpsum + qpcount/2) / qpcount, p->qscale_type) * FF_QP2LAMBDA;
     }
 //    init per MB qscale stuff FIXME
-    p->frame->height = height;
-    p->frame->width  = width;
+    p->frame->height = height + BLOCK;
+    p->frame->width  = width + BLOCK;
 
     for (i = 0; i < count; i++) {
         const int x1 = offset[i+count-1][0];