From c5968aaaed74a1efe517c9c6804e3ba9d236d931 Mon Sep 17 00:00:00 2001 From: Christophe Massiot Date: Fri, 7 Feb 2003 16:51:39 +0000 Subject: [PATCH] Fixed a buffer leak with slice-I streams (thanks sam). --- modules/codec/mpeg_video/headers.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/codec/mpeg_video/headers.c b/modules/codec/mpeg_video/headers.c index cbe8876a85..a710b4f4ab 100644 --- a/modules/codec/mpeg_video/headers.c +++ b/modules/codec/mpeg_video/headers.c @@ -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 * Stéphane Borel @@ -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; -- 2.20.1