Skip to content
Snippets Groups Projects
Commit ac424b23 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

postproc/postprocess: Check for av_mallocz() failure


Fixes CID1271050

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 45e0aa46
No related branches found
No related tags found
No related merge requests found
......@@ -917,6 +917,9 @@ pp_context *pp_get_context(int width, int height, int cpuCaps){
int stride= FFALIGN(width, 16); //assumed / will realloc if needed
int qpStride= (width+15)/16 + 2; //assumed / will realloc if needed
if (!c)
return NULL;
c->av_class = &av_codec_context_class;
if(cpuCaps&PP_FORMAT){
c->hChromaSubSample= cpuCaps&0x3;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment