Commit 22267913 authored by Laurent Aimar's avatar Laurent Aimar

* faad: drop packets with b_discontinuity set.

parent 7de8c209
......@@ -2,7 +2,7 @@
* decoder.c: AAC decoder using libfaad2
*****************************************************************************
* Copyright (C) 2001, 2003 VideoLAN
* $Id: faad.c,v 1.5 2003/11/22 23:39:14 fenrir Exp $
* $Id: faad.c,v 1.6 2003/11/27 20:51:31 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
......@@ -164,6 +164,12 @@ static aout_buffer_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
p_block = *pp_block;
if( p_block->b_discontinuity )
{
block_Release( p_block );
return NULL;
}
/* Append the block to the temporary buffer */
if( p_sys->i_buffer_size < p_sys->i_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