]> git.sesse.net Git - vlc/commitdiff
Fixed a buffer leak with slice-I streams (thanks sam).
authorChristophe Massiot <massiot@videolan.org>
Fri, 7 Feb 2003 16:51:39 +0000 (16:51 +0000)
committerChristophe Massiot <massiot@videolan.org>
Fri, 7 Feb 2003 16:51:39 +0000 (16:51 +0000)
modules/codec/mpeg_video/headers.c

index cbe8876a85c29140290eb474f3d5c39657a14101..a710b4f4ab6b7d228adc35087d440cac814743ee 100644 (file)
@@ -2,7 +2,7 @@
  * vpar_headers.c : headers parsing
  *****************************************************************************
  * Copyright (C) 1999-2001 VideoLAN
- * $Id: headers.c,v 1.10 2003/02/04 11:51:21 massiot Exp $
+ * $Id: headers.c,v 1.11 2003/02/07 16:51:39 massiot Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *          Stéphane Borel <stef@via.ecp.fr>
@@ -654,6 +654,9 @@ static void PictureHeader( vpar_thread_t * p_vpar )
 
         /* Update the reference pointers. */
         ReferenceUpdate( p_vpar, I_CODING_TYPE, P_picture );
+        vout_DisplayPicture( p_vpar->p_vout, P_picture );
+        P_picture = NULL;
+        p_vpar->picture.i_current_structure = 0;
     }
     p_vpar->sequence.b_after_sequence_header = 0;