[vlc-commits] chroma: cvpx: add missing error check
Thomas Guillem
git at videolan.org
Mon Oct 2 10:32:25 CEST 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Oct 2 09:24:32 2017 +0200| [92e0041f9a0dd115bcd45c352ccdec51ece7762e] | committer: Thomas Guillem
chroma: cvpx: add missing error check
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=92e0041f9a0dd115bcd45c352ccdec51ece7762e
---
modules/video_chroma/cvpx.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/video_chroma/cvpx.c b/modules/video_chroma/cvpx.c
index 15e006ef85..a111468328 100644
--- a/modules/video_chroma/cvpx.c
+++ b/modules/video_chroma/cvpx.c
@@ -89,6 +89,11 @@ static picture_t *CVPX_TO_SW_Filter(filter_t *p_filter, picture_t *src)
picture_t *src_sw =
cvpxpic_create_mapped(&p_filter->fmt_out.video, cvpxpic_get_ref(src),
true);
+ if (!src_sw)
+ {
+ picture_Release(src);
+ return NULL;
+ }
picture_CopyProperties(src_sw, src);
picture_Release(src);
return src_sw;
More information about the vlc-commits
mailing list