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

Francois Cartegnie git at videolan.org
Tue Sep 23 16:35:30 CEST 2014


vlc/vlc-2.2 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Sep 23 12:49:06 2014 +0200| [b48c0d741d7feb14cdc2575458b14d8e84aa689c] | committer: Jean-Baptiste Kempf

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

(cherry picked from commit 83a873ba0ea9fcf42a4bb02ffc68380321321d2e)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 b61366b..7e41e76 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -2995,7 +2995,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