diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-02-22 03:09:47 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-22 03:09:47 +0100 |
commit | 45e0aa46ca9b8692487efb51274c4de004c22821 (patch) | |
tree | 27027b8d7d600fe6e229d2dbcb3c2c63a3535046 /libpostproc | |
parent | 066dc0437368acd21546ee327a0a94c60c3808b2 (diff) | |
download | ffmpeg-45e0aa46ca9b8692487efb51274c4de004c22821.tar.gz |
postproc/postprocess: use av_mallocz()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libpostproc')
-rw-r--r-- | libpostproc/postprocess.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c index c11debcd70..b8492ee5f6 100644 --- a/libpostproc/postprocess.c +++ b/libpostproc/postprocess.c @@ -913,11 +913,10 @@ static const char * context_to_name(void * ptr) { static const AVClass av_codec_context_class = { "Postproc", context_to_name, NULL }; pp_context *pp_get_context(int width, int height, int cpuCaps){ - PPContext *c= av_malloc(sizeof(PPContext)); + PPContext *c= av_mallocz(sizeof(PPContext)); int stride= FFALIGN(width, 16); //assumed / will realloc if needed int qpStride= (width+15)/16 + 2; //assumed / will realloc if needed - memset(c, 0, sizeof(PPContext)); c->av_class = &av_codec_context_class; if(cpuCaps&PP_FORMAT){ c->hChromaSubSample= cpuCaps&0x3; |