]> git.sesse.net Git - vlc/commitdiff
* faad: drop packets with b_discontinuity set.
authorLaurent Aimar <fenrir@videolan.org>
Thu, 27 Nov 2003 20:51:31 +0000 (20:51 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Thu, 27 Nov 2003 20:51:31 +0000 (20:51 +0000)
modules/codec/faad.c

index df932a64ecdc84b0df2690dc8cb47f14aca9e9b3..dffe725b93394c4747bf43ffa92a7554cdd6dedf 100644 (file)
@@ -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 )
     {