]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_fspp.c
avcodec/qdm2: remove unneeded #include, there are no assert()
[ffmpeg] / libavfilter / vf_fspp.c
index fe15db0f7cb64644467053e55fcb1b5516ebc873..e4de0f5713fc000ea2be834abb2e356a6b07734a 100644 (file)
@@ -221,7 +221,8 @@ static void filter(FSPPContext *p, uint8_t *dst, uint8_t *src,
             p->row_fdct(block + 8 * 8, p->src + y * stride + 8 + x0 + 2 - (y & 1), stride, (es - 4) >> 2);
 
         p->column_fidct((int16_t *)(&p->threshold_mtx[0]), block, block3, es&(~1));
-        p->row_idct(block3 + 0 * 8, p->temp + (y & 15) * stride + x0 + 2 - (y & 1), stride, es >> 2);
+        if (es > 3)
+            p->row_idct(block3 + 0 * 8, p->temp + (y & 15) * stride + x0 + 2 - (y & 1), stride, es >> 2);
 
         if (!(y1 & 7) && y1) {
             if (y1 & 8)
@@ -626,6 +627,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
                     return AVERROR(ENOMEM);
                 }
                 av_frame_copy_props(out, in);
+                out->width = in->width;
+                out->height = in->height;
             }
 
             filter(fspp, out->data[0], in->data[0], out->linesize[0], in->linesize[0],