[vlc-devel] [PATCH] faad: reset i_buffer after flush
Tristan Matthews
le.businessman at gmail.com
Thu May 29 07:49:25 CEST 2014
Fixes #2575
---
modules/codec/faad.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/codec/faad.c b/modules/codec/faad.c
index bf1b004..ad5d07d 100644
--- a/modules/codec/faad.c
+++ b/modules/codec/faad.c
@@ -384,6 +384,7 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
{
memmove( p_sys->p_buffer,&p_sys->p_buffer[frame.bytesconsumed],
p_sys->i_buffer );
+ p_sys->i_buffer = 0;
}
block_Release( p_block );
return NULL;
@@ -399,6 +400,7 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
{
memmove( p_sys->p_buffer,&p_sys->p_buffer[frame.bytesconsumed],
p_sys->i_buffer );
+ p_sys->i_buffer = 0;
}
block_Release( p_block );
return NULL;
@@ -493,6 +495,7 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
{
memmove( p_sys->p_buffer, &p_sys->p_buffer[frame.bytesconsumed],
p_sys->i_buffer );
+ p_sys->i_buffer = 0;
}
return p_out;
--
1.9.3
More information about the vlc-devel
mailing list