Commit 715fae63 authored by Christophe Massiot's avatar Christophe Massiot

Fixed a stupid bug in buffer management with field pictures.

parent 4452dad3
......@@ -2,7 +2,7 @@
* vpar_headers.c : headers parsing
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: vpar_headers.c,v 1.4 2001/07/25 15:37:34 massiot Exp $
* $Id: vpar_headers.c,v 1.5 2001/07/25 18:06:27 massiot Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Stphane Borel <stef@via.ecp.fr>
......@@ -602,6 +602,7 @@ static void PictureHeader( vpar_thread_t * p_vpar )
p_vpar->picture.i_coding_type,
NULL );
vout_DestroyPicture( p_vpar->p_vout, p_vpar->picture.p_picture );
p_vpar->picture.p_picture = NULL;
}
p_vpar->picture.i_current_structure = 0;
......@@ -672,12 +673,12 @@ static void PictureHeader( vpar_thread_t * p_vpar )
if( (p_vpar->picture.i_current_structure | i_structure)
== FRAME_STRUCTURE )
{
p_vpar->picture.i_current_structure = 0;
p_vpar->picture.i_current_structure = i_structure;
}
else
{
/* The frame is complete. */
p_vpar->picture.i_current_structure = i_structure;
p_vpar->picture.i_current_structure = 0;
vpar_SynchroTrash( p_vpar, p_vpar->picture.i_coding_type, i_structure );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment