diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-02-22 03:19:05 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-22 03:19:05 +0100 |
commit | f9d24ee1dc8e16312af059c716d489b7de689822 (patch) | |
tree | d395f0ab4e9744b8314de26e8773e5d4ee021339 /libpostproc | |
parent | ac424b23e404a53bb88e36496fac94d2ff9dd775 (diff) | |
download | ffmpeg-streaming-f9d24ee1dc8e16312af059c716d489b7de689822.zip ffmpeg-streaming-f9d24ee1dc8e16312af059c716d489b7de689822.tar.gz |
postproc/postprocess: Check for av_malloc() failure
Fixes CID1271052
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libpostproc')
-rw-r--r-- | libpostproc/postprocess.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c index 7f999f9..4d54c6d 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; |