Message ID | CAOMZO5D+APp=LcnVuCQYeCOtMDZ6KkyzHZ8js_XPC+DKHd-+Eg@mail.gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
--- a/drivers/media/platform/coda.c +++ b/drivers/media/platform/coda.c @@ -1518,7 +1518,10 @@ static int coda_alloc_framebuffers(struct coda_ctx *ctx, int ret; int i; - if (ctx->codec && ctx->codec->src_fourcc == V4L2_PIX_FMT_H264) + if (!ctx->codec) + return -EINVAL; + + if (ctx->codec->src_fourcc == V4L2_PIX_FMT_H264) height = round_up(height, 16); ysize = round_up(q_data->width, 8) * height; -- To unsubscribe from this list: send the line "unsubscribe linux-media" in