Commit f9d24ee1 authored by Michael Niedermayer's avatar Michael Niedermayer

postproc/postprocess: Check for av_malloc() failure

Fixes CID1271052
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ac424b23
......@@ -700,6 +700,8 @@ pp_mode *pp_get_mode_by_name_and_quality(const char *name, int quality)
}
ppMode= av_malloc(sizeof(PPMode));
if (!ppMode)
return NULL;
ppMode->lumMode= 0;
ppMode->chromMode= 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment