mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-09 05:38:58 +00:00
mfc: Workaround for wrongly reported strides by FIMC
This commit is contained in:
parent
52f8649586
commit
c77e820a52
1 changed files with 6 additions and 0 deletions
|
@ -471,6 +471,12 @@ fimc_set_dst_format_direct (Fimc * fimc, FimcColorFormat format, int width,
|
||||||
stride[i] = fimc->dst_fmt.fmt.pix_mp.plane_fmt[i].bytesperline;
|
stride[i] = fimc->dst_fmt.fmt.pix_mp.plane_fmt[i].bytesperline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* FIXME: The device reports wrong strides */
|
||||||
|
if (fimc->dst_format == FIMC_COLOR_FORMAT_YUV420P) {
|
||||||
|
stride[1] /= 2;
|
||||||
|
stride[2] /= 2;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue