Commit 59d7d4f2 authored by Laurent Aimar's avatar Laurent Aimar

Do not dump corrupted blocks in "dump" codec.

parent bdb8aee9
...@@ -144,7 +144,9 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block ) ...@@ -144,7 +144,9 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
if( !pp_block || !*pp_block ) return NULL; if( !pp_block || !*pp_block ) return NULL;
p_block = *pp_block; p_block = *pp_block;
if( p_sys->i_fd >= 0 && p_block->i_buffer ) if( p_sys->i_fd >= 0 &&
p_block->i_buffer > 0 &&
(p_block->i_flags & (BLOCK_FLAG_DISCONTINUITY|BLOCK_FLAG_CORRUPTED) ) == 0 )
{ {
#ifndef UNDER_CE #ifndef UNDER_CE
write( p_sys->i_fd, p_block->p_buffer, p_block->i_buffer ); write( p_sys->i_fd, p_block->p_buffer, p_block->i_buffer );
......
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