media: coda: align internal mpeg4 framebuffers to 16x16 macroblocks
[platform/kernel/linux-rpi.git] / drivers / media / platform / coda / coda-bit.c
index a4abeab..2f31c67 100644 (file)
@@ -394,7 +394,8 @@ static int coda_alloc_framebuffers(struct coda_ctx *ctx,
        int i;
 
        if (ctx->codec->src_fourcc == V4L2_PIX_FMT_H264 ||
-           ctx->codec->dst_fourcc == V4L2_PIX_FMT_H264) {
+           ctx->codec->dst_fourcc == V4L2_PIX_FMT_H264 ||
+           ctx->codec->dst_fourcc == V4L2_PIX_FMT_MPEG4) {
                width = round_up(q_data->width, 16);
                height = round_up(q_data->height, 16);
        } else {