From 8d186b976444c28cc7af442c39e21dbac71a698b Mon Sep 17 00:00:00 2001 From: Gildas Bazin Date: Thu, 30 Jan 2003 02:16:09 +0000 Subject: [PATCH] * modules/codec/mpeg_video/headers.c: fixed non-initialized variable in PictureDisplayExtension(). This does also fix problems with the dvdplay plugin and menus with still pictures. --- modules/codec/mpeg_video/headers.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/codec/mpeg_video/headers.c b/modules/codec/mpeg_video/headers.c index 84877b4273..983dec7475 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.8 2003/01/30 00:39:41 massiot Exp $ + * $Id: headers.c,v 1.9 2003/01/30 02:16:09 gbazin Exp $ * * Authors: Christophe Massiot * Stéphane Borel @@ -613,6 +613,8 @@ static void PictureHeader( vpar_thread_t * p_vpar ) p_vpar->picture.b_progressive = 1; } + p_vpar->picture.b_frame_structure = (i_structure == FRAME_STRUCTURE); + /* Extension and User data. */ ExtensionAndUserData( p_vpar ); @@ -766,7 +768,6 @@ static void PictureHeader( vpar_thread_t * p_vpar ) #define P_picture p_vpar->picture.p_picture p_vpar->picture.b_error = 0; - p_vpar->picture.b_frame_structure = (i_structure == FRAME_STRUCTURE); if( !p_vpar->picture.i_current_structure ) { -- 2.39.2