ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanaga...@gmail.com> | Mon Oct 26 14:49:21 2015 -0400| [6f1ddc726f0763cd9cc271e33ba0769d821d74da] | committer: Ganesh Ajjanagadde
avdevice/dshow_enummediatypes: check return of av_malloc Untested. Reviewed-by: Michael Niedermayer <mich...@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanaga...@gmail.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6f1ddc726f0763cd9cc271e33ba0769d821d74da --- libavdevice/dshow_enummediatypes.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavdevice/dshow_enummediatypes.c b/libavdevice/dshow_enummediatypes.c index 5b69a5b..3a66a4d 100644 --- a/libavdevice/dshow_enummediatypes.c +++ b/libavdevice/dshow_enummediatypes.c @@ -37,6 +37,8 @@ libAVEnumMediaTypes_Next(libAVEnumMediaTypes *this, unsigned long n, if (!this->pos && n == 1) { if (!IsEqualGUID(&this->type.majortype, &GUID_NULL)) { AM_MEDIA_TYPE *type = av_malloc(sizeof(AM_MEDIA_TYPE)); + if (!type) + return E_OUTOFMEMORY; ff_copy_dshow_media_type(type, &this->type); *types = type; count = 1; _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog