You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
postproc/postprocess: Check for av_malloc() failure
Fixes CID1271052 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user