[FFmpeg-cvslog] postproc/postprocess: Check for av_malloc() failure
Michael Niedermayer
git at videolan.org
Sun Feb 22 13:56:30 CET 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Feb 22 03:19:05 2015 +0100| [f9d24ee1dc8e16312af059c716d489b7de689822] | committer: Michael Niedermayer
postproc/postprocess: Check for av_malloc() failure
Fixes CID1271052
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f9d24ee1dc8e16312af059c716d489b7de689822
---
libpostproc/postprocess.c | 2 ++
1 file changed, 2 insertions(+)
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;
More information about the ffmpeg-cvslog
mailing list