diff options
author | Tony K Nadackal <tony.kn@samsung.com> | 2014-12-17 04:21:21 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-03-04 08:57:12 -0300 |
commit | cb0c3f5f1b888fa0283c2581c91bb10728ac1b22 (patch) | |
tree | a32bca2cce1e2c34ae8616afdfd7caca379357f3 /drivers/media/platform/s5p-jpeg | |
parent | d5c00762ec5db2f7a7c0b54415b7df364c78d39d (diff) | |
download | linux-cb0c3f5f1b888fa0283c2581c91bb10728ac1b22.tar.gz linux-cb0c3f5f1b888fa0283c2581c91bb10728ac1b22.tar.bz2 linux-cb0c3f5f1b888fa0283c2581c91bb10728ac1b22.zip |
[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@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/platform/s5p-jpeg')
-rw-r--r-- | drivers/media/platform/s5p-jpeg/jpeg-core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/platform/s5p-jpeg/jpeg-core.c b/drivers/media/platform/s5p-jpeg/jpeg-core.c index 12f7452edce3..a92ff4249d10 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) { |