vlc | branch: master | Francois Cartegnie <[email protected]> | Tue Sep 23 14:58:29 2014 +0200| [35133fe70b28dc91b38a650ee9398cf68d8f119d] | committer: Francois Cartegnie
demux: ogg: don't use incomplete vorbis headers (fix #12270) > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=35133fe70b28dc91b38a650ee9398cf68d8f119d --- modules/demux/ogg.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c index d4b84c2..bd3b449 100644 --- a/modules/demux/ogg.c +++ b/modules/demux/ogg.c @@ -516,6 +516,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 ) _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
