]> git.sesse.net Git - vlc/commitdiff
* modules/codec/mpeg_video/headers.c: fixed non-initialized variable in
authorGildas Bazin <gbazin@videolan.org>
Thu, 30 Jan 2003 02:16:09 +0000 (02:16 +0000)
committerGildas Bazin <gbazin@videolan.org>
Thu, 30 Jan 2003 02:16:09 +0000 (02:16 +0000)
    PictureDisplayExtension(). This does also fix problems with the dvdplay
    plugin and menus with still pictures.

modules/codec/mpeg_video/headers.c

index 84877b4273946098deb116a89168f3987b6533ff..983dec7475f4067aaeab5ce59398d8ca0a3b1c5a 100644 (file)
@@ -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 <massiot@via.ecp.fr>
  *          Stéphane Borel <stef@via.ecp.fr>
@@ -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 )
     {