Skip to content
Snippets Groups Projects
Commit b6dc08db authored by dionoea's avatar dionoea
Browse files

Factorize picture dating and releasing code.

parent 728bc0ab
No related branches found
No related tags found
No related merge requests found
......@@ -82,3 +82,20 @@ static inline int GetPackedYuvOffsets( vlc_fourcc_t i_chroma,
return VLC_EGENERIC;
}
}
/*****************************************************************************
*
*****************************************************************************/
static inline picture_t *CopyMetaAndRelease( picture_t *p_outpic, picture_t *p_inpic )
{
p_outpic->date = p_inpic->date;
p_outpic->b_force = p_inpic->b_force;
p_outpic->i_nb_fields = p_inpic->i_nb_fields;
p_outpic->b_progressive = p_inpic->b_progressive;
p_outpic->b_top_field_first = p_inpic->b_top_field_first;
if( p_inpic->pf_release )
p_inpic->pf_release( p_inpic );
return p_outpic;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment