[vlc-commits] Revert "lpcm: validate block_nb_frames in DVD/LPCM cases"
Francois Cartegnie
git at videolan.org
Tue Mar 21 11:13:23 CET 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Mar 21 11:06:39 2017 +0100| [a295ef7977c1662fb7d8d362cd03dd81ef93ac6d] | committer: Francois Cartegnie
Revert "lpcm: validate block_nb_frames in DVD/LPCM cases"
This reverts commit 8447e3d87b65c36d57a2c55d4afb717bb1945321.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a295ef7977c1662fb7d8d362cd03dd81ef93ac6d
---
modules/codec/lpcm.c | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/modules/codec/lpcm.c b/modules/codec/lpcm.c
index 72c31cd..5de1846 100644
--- a/modules/codec/lpcm.c
+++ b/modules/codec/lpcm.c
@@ -473,20 +473,6 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
p_block->p_buffer += p_sys->i_header_size + i_padding;
p_block->i_buffer -= p_sys->i_header_size + i_padding;
- const unsigned block_nb_frames = p_block->i_buffer / ( i_bits * 4 / 8 );
- const unsigned aout_nb_frames = p_aout_buffer->i_nb_samples
- / ( p_dec->fmt_out.audio.i_bitspersample / 8 );
-
- if( block_nb_frames > aout_nb_frames )
- {
- msg_Warn( p_dec, "invalid block size" );
-
- block_Release( p_block );
- block_Release( p_aout_buffer );
-
- return NULL;
- }
-
switch( p_sys->i_type )
{
case LPCM_WIDI:
More information about the vlc-commits
mailing list