[vlc-commits] codec/mediacodec: H264 CSDs need a valid sps
Thomas Guillem
git at videolan.org
Tue Dec 13 17:11:04 CET 2016
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Dec 13 15:40:24 2016 +0100| [9d9f0f56f73f3dec82ce25946566f5b265156411] | committer: Thomas Guillem
codec/mediacodec: H264 CSDs need a valid sps
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9d9f0f56f73f3dec82ce25946566f5b265156411
---
modules/codec/omxil/mediacodec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/omxil/mediacodec.c b/modules/codec/omxil/mediacodec.c
index 27e0614..386e2d0 100644
--- a/modules/codec/omxil/mediacodec.c
+++ b/modules/codec/omxil/mediacodec.c
@@ -285,7 +285,7 @@ static int H264SetCSD(decoder_t *p_dec, void *p_buf, size_t i_size,
if (h264_AnnexB_get_spspps(p_buf, i_size,
&p_sps_buf, &i_sps_size,
&p_pps_buf, &i_pps_size,
- NULL, NULL))
+ NULL, NULL) && i_sps_size > 0)
{
struct csd csd[2];
int i_csd_count = 0;
More information about the vlc-commits
mailing list