Merge branch 'core-objtool-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-block.git] / drivers / staging / media / hantro / hantro_v4l2.c
index 0198bcda26b751175fd1975de873873f3a1a9e30..f4ae2cee0f189bf0674e680224d3d335a011186e 100644 (file)
@@ -295,7 +295,7 @@ static int vidioc_try_fmt(struct file *file, void *priv, struct v4l2_format *f,
                 * +---------------------------+
                 */
                if (ctx->vpu_src_fmt->fourcc == V4L2_PIX_FMT_H264_SLICE &&
-                   !hantro_needs_postproc(ctx, ctx->vpu_dst_fmt))
+                   !hantro_needs_postproc(ctx, fmt))
                        pix_mp->plane_fmt[0].sizeimage +=
                                64 * MB_WIDTH(pix_mp->width) *
                                     MB_WIDTH(pix_mp->height) + 32;