Commit 83a873ba authored by Francois Cartegnie's avatar Francois Cartegnie

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

parent c88a2517
...@@ -3053,7 +3053,7 @@ static void Ogg_ReadSkeletonIndex( demux_t *p_demux, ogg_packet *p_oggpacket ) ...@@ -3053,7 +3053,7 @@ static void Ogg_ReadSkeletonIndex( demux_t *p_demux, ogg_packet *p_oggpacket )
break; break;
} }
} }
if ( !p_stream ) return; if ( !p_stream || !p_stream->p_skel ) return;
uint64_t i_keypoints = GetQWLE( &p_oggpacket->packet[10] ); uint64_t i_keypoints = GetQWLE( &p_oggpacket->packet[10] );
msg_Dbg( p_demux, "%" PRIi64 " index data for %" PRIi32, i_keypoints, i_serialno ); msg_Dbg( p_demux, "%" PRIi64 " index data for %" PRIi32, i_keypoints, i_serialno );
if ( !i_keypoints ) return; if ( !i_keypoints ) return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment