Commit 05d94c9e authored by Francois Cartegnie's avatar Francois Cartegnie Committed by Jean-Baptiste Kempf

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

(cherry picked from commit 35133fe70b28dc91b38a650ee9398cf68d8f119d)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent b48c0d74
......@@ -509,6 +509,11 @@ static int Demux( demux_t * p_demux )
#ifdef HAVE_LIBVORBIS
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(
p_stream->special.vorbis.p_info, &dumb_packet );
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