Skip to content

Commit

Permalink
Merge pull request endlessm#98 from ndufresne/master
Browse files Browse the repository at this point in the history
meson-vdec: Return valid width/height in TRY_FMT
  • Loading branch information
dsd committed Nov 5, 2015
2 parents 4dd9ab6 + 2e86832 commit 4498370
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/media/platform/meson/meson_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,10 @@ static void configure_v4l2_plane_fmt(struct vdec_ctx *ctx,
struct buffer_size_info buf_info;

mp->pixelformat = ctx->fmt->pixelformat;
mp->width = ctx->frame_width;
mp->height = ctx->frame_height;
if (ctx->frame_width)
mp->width = ctx->frame_width;
if (ctx->frame_height)
mp->height = ctx->frame_height;
mp->field = V4L2_FIELD_NONE;

get_buffer_size_info(ctx->fmt, mp->width, mp->height, &buf_info);
Expand Down

0 comments on commit 4498370

Please sign in to comment.