aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2012-05-19 13:39:15 +0200
committerReinhard Tartler <siretart@tauware.de>2012-10-14 16:03:23 -0400
commitb561618014a2413d2b521d03561eb1e2028adbf4 (patch)
treebf31cb2a3953224f377ff42ca76ae3eed433c912
parente0daa15a96cff78f633dfcb5a7f0eeb2204ca82c (diff)
downloadffmpeg-b561618014a2413d2b521d03561eb1e2028adbf4.tar.gz
indeo: clear allocated band buffers
(cherry picked from commit 23ba1503f2b11057c65052b4a07961236d8d69c7) Signed-off-by: Reinhard Tartler <siretart@tauware.de>
-rw-r--r--libavcodec/ivi_common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/ivi_common.c b/libavcodec/ivi_common.c
index 5626cd1855..b8286cd31c 100644
--- a/libavcodec/ivi_common.c
+++ b/libavcodec/ivi_common.c
@@ -212,14 +212,14 @@ int av_cold ff_ivi_init_planes(IVIPlaneDesc *planes, const IVIPicConfig *cfg)
band->width = b_width;
band->height = b_height;
band->pitch = width_aligned;
- band->bufs[0] = av_malloc(buf_size);
- band->bufs[1] = av_malloc(buf_size);
+ band->bufs[0] = av_mallocz(buf_size);
+ band->bufs[1] = av_mallocz(buf_size);
if (!band->bufs[0] || !band->bufs[1])
return AVERROR(ENOMEM);
/* allocate the 3rd band buffer for scalability mode */
if (cfg->luma_bands > 1) {
- band->bufs[2] = av_malloc(buf_size);
+ band->bufs[2] = av_mallocz(buf_size);
if (!band->bufs[2])
return AVERROR(ENOMEM);
}