]> git.sesse.net Git - vlc/commitdiff
Correction du bug de la premiere image verte (putain mais quel con)
authorGaël Hendryckx <jimmy@videolan.org>
Sat, 22 Jan 2000 22:02:49 +0000 (22:02 +0000)
committerGaël Hendryckx <jimmy@videolan.org>
Sat, 22 Jan 2000 22:02:49 +0000 (22:02 +0000)
src/video_parser/vpar_headers.c

index b52a28c5bd9bd4610a4e9911dd7141e4938f1be0..ee66079c81489199aa447e005e903a15a984085e 100644 (file)
@@ -669,6 +669,7 @@ fprintf( stderr, "coding type: %d\n", p_vpar->picture.i_coding_type );
     /* OK, now we are sure we will decode the picture. */
 #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 )
     {
@@ -713,7 +714,6 @@ memset( P_picture->p_data, 0, (p_vpar->sequence.i_mb_size*384));
     }
     p_vpar->picture.i_current_structure |= i_structure;
     p_vpar->picture.i_structure = i_structure;
-    p_vpar->picture.b_frame_structure = (i_structure == FRAME_STRUCTURE);
 
     /* Initialize picture data for decoding. */
     if( p_vpar->picture.b_motion_field = (i_structure == BOTTOM_FIELD) )