]> git.sesse.net Git - vlc/commitdiff
* modules/packetizer/mpegvideo.c: Drop corrupt blocks.
authorChristophe Massiot <massiot@videolan.org>
Mon, 11 Jul 2005 09:43:38 +0000 (09:43 +0000)
committerChristophe Massiot <massiot@videolan.org>
Mon, 11 Jul 2005 09:43:38 +0000 (09:43 +0000)
modules/packetizer/mpegvideo.c

index f6becef018035400bd09179bff9393bba4a3ec99..4380a037164cac355ea4c8a49fee2b7ec09d31ee 100644 (file)
@@ -216,7 +216,7 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
         return NULL;
     }
 
-    if( (*pp_block)->i_flags & BLOCK_FLAG_DISCONTINUITY )
+    if( (*pp_block)->i_flags & (BLOCK_FLAG_DISCONTINUITY|BLOCK_FLAG_CORRUPTED) )
     {
         p_sys->i_state = STATE_NOSYNC;
         if( p_sys->p_frame ) block_ChainRelease( p_sys->p_frame );