[vlc-commits] demux: mp4: don't start without hevc extradata

Francois Cartegnie git at videolan.org
Tue Dec 8 17:31:46 CET 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Dec  8 17:10:13 2015 +0100| [25495868be580cc916317fad86d19277ed69c0f0] | committer: Francois Cartegnie

demux: mp4: don't start without hevc extradata

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=25495868be580cc916317fad86d19277ed69c0f0
---

 modules/demux/mp4/essetup.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mp4/essetup.c b/modules/demux/mp4/essetup.c
index c8be5a3..3d929ba 100644
--- a/modules/demux/mp4/essetup.c
+++ b/modules/demux/mp4/essetup.c
@@ -355,7 +355,7 @@ int SetupVideoES( demux_t *p_demux, mp4_track_t *p_track, MP4_Box_t *p_sample )
         {
             MP4_Box_t *p_hvcC = MP4_BoxGet( p_sample, "hvcC" );
 
-            if( p_hvcC && p_hvcC->data.p_binary )
+            if( p_hvcC && p_hvcC->data.p_binary && p_hvcC->data.p_binary->i_blob )
             {
                 p_track->fmt.p_extra = malloc( p_hvcC->data.p_binary->i_blob );
                 if( p_track->fmt.p_extra )



More information about the vlc-commits mailing list