diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c index 7f999f9762..4d54c6dc89 100644 --- a/libpostproc/postprocess.c +++ b/libpostproc/postprocess.c @@ -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;