RE: [PATCH] [media] s5p-jpeg: Initialize cb and cr to zero.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Gentle Reminder.

Thanks,
Tony

> -----Original Message-----
> From: Tony K Nadackal [mailto:tony.kn@xxxxxxxxxxx]
> Sent: Wednesday, December 17, 2014 12:51 PM
> To: linux-media@xxxxxxxxxxxxxxx; linux-arm-kernel@xxxxxxxxxxxxxxxxxxx; linux-
> samsung-soc@xxxxxxxxxxxxxxx
> Cc: mchehab@xxxxxxxxxxxxxxx; j.anaszewski@xxxxxxxxxxx;
> kgene@xxxxxxxxxx; k.debski@xxxxxxxxxxx; s.nawrocki@xxxxxxxxxxx;
> bhushan.r@xxxxxxxxxxx; Tony K Nadackal
> Subject: [PATCH] [media] s5p-jpeg: Initialize cb and cr to zero.
> 
> To avoid garbage value written into image base address planes, initialize cb
and cr
> of structure s5p_jpeg_addr to zero.
> 
> Signed-off-by: Tony K Nadackal <tony.kn@xxxxxxxxxxx>
> ---
> This patch is created and tested on top of linux-next-20141210.
> It can be cleanly applied on media-next and kgene/for-next.
> 
>  drivers/media/platform/s5p-jpeg/jpeg-core.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/media/platform/s5p-jpeg/jpeg-core.c
> b/drivers/media/platform/s5p-jpeg/jpeg-core.c
> index 91bd3e6..54fa5d9 100644
> --- a/drivers/media/platform/s5p-jpeg/jpeg-core.c
> +++ b/drivers/media/platform/s5p-jpeg/jpeg-core.c
> @@ -1845,6 +1845,9 @@ static void exynos4_jpeg_set_img_addr(struct
> s5p_jpeg_ctx *ctx)
>  	struct s5p_jpeg_addr jpeg_addr;
>  	u32 pix_size, padding_bytes = 0;
> 
> +	jpeg_addr.cb = 0;
> +	jpeg_addr.cr = 0;
> +
>  	pix_size = ctx->cap_q.w * ctx->cap_q.h;
> 
>  	if (ctx->mode == S5P_JPEG_ENCODE) {
> --
> 2.2.0

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux