[vlc-commits] demux: ogg: Don't read skeleton if no bones first

Francois Cartegnie git at videolan.org
Tue Sep 23 15:31:45 CEST 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Sep 23 12:49:06 2014 +0200| [83a873ba0ea9fcf42a4bb02ffc68380321321d2e] | committer: Francois Cartegnie

demux: ogg: Don't read skeleton if no bones first

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

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

diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index 3c87732..d4b84c2 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -3053,7 +3053,7 @@ static void Ogg_ReadSkeletonIndex( demux_t *p_demux, ogg_packet *p_oggpacket )
             break;
         }
     }
-    if ( !p_stream ) return;
+    if ( !p_stream || !p_stream->p_skel ) return;
     uint64_t i_keypoints = GetQWLE( &p_oggpacket->packet[10] );
     msg_Dbg( p_demux, "%" PRIi64 " index data for %" PRIi32, i_keypoints, i_serialno );
     if ( !i_keypoints ) return;



More information about the vlc-commits mailing list