Commit 35133fe7 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: ogg: don't use incomplete vorbis headers (fix #12270)

parent 83a873ba
...@@ -516,6 +516,11 @@ static int Demux( demux_t * p_demux ) ...@@ -516,6 +516,11 @@ static int Demux( demux_t * p_demux )
#ifdef HAVE_LIBVORBIS #ifdef HAVE_LIBVORBIS
case VLC_CODEC_VORBIS: case VLC_CODEC_VORBIS:
{ {
if( p_stream->special.vorbis.b_invalid )
{
msg_Err( p_demux, "missing vorbis headers, can't compute block size" );
break;
}
long i_blocksize = vorbis_packet_blocksize( long i_blocksize = vorbis_packet_blocksize(
p_stream->special.vorbis.p_info, &dumb_packet ); p_stream->special.vorbis.p_info, &dumb_packet );
if ( i_prev_blocksize ) if ( i_prev_blocksize )
......
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