media: coda: round up frame sizes to multiples of 16 for MPEG-4 decoder
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 7 Dec 2017 14:59:49 +0000 (09:59 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 18 Dec 2017 19:59:31 +0000 (14:59 -0500)
We need internal frames to be rounded up to full macroblocks for MPEG-4
decoding as well.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/coda/coda-bit.c

index bfc4ecf..87002be 100644 (file)
@@ -395,6 +395,7 @@ static int coda_alloc_framebuffers(struct coda_ctx *ctx,
 
        if (ctx->codec->src_fourcc == V4L2_PIX_FMT_H264 ||
            ctx->codec->dst_fourcc == V4L2_PIX_FMT_H264 ||
+           ctx->codec->src_fourcc == V4L2_PIX_FMT_MPEG4 ||
            ctx->codec->dst_fourcc == V4L2_PIX_FMT_MPEG4) {
                width = round_up(q_data->width, 16);
                height = round_up(q_data->height, 16);