[vlc-commits] videotoolbox: fail if there is no valid sps
Thomas Guillem
git at videolan.org
Fri Jan 6 17:48:21 CET 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jan 6 17:47:49 2017 +0100| [3d1ab93c85f6adf674767825b6f85a24a174406f] | committer: Thomas Guillem
videotoolbox: fail if there is no valid sps
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3d1ab93c85f6adf674767825b6f85a24a174406f
---
modules/codec/videotoolbox.m | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index 963e02f..69efd7a 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -417,7 +417,7 @@ static int StartVideoToolbox(decoder_t *p_dec, block_t *p_block)
&p_sps_nal, &i_sps_nalsize,
&p_pps_nal, &i_pps_nalsize,
NULL, NULL) ? VLC_SUCCESS : VLC_EGENERIC;
- if (i_ret != VLC_SUCCESS) {
+ if (i_ret != VLC_SUCCESS || i_sps_nalsize == 0) {
free(p_alloc_buf);
msg_Warn(p_dec, "sps pps detection failed");
return VLC_EGENERIC;
More information about the vlc-commits
mailing list