Commit cbd0d39f authored by Antoine Cellerier's avatar Antoine Cellerier Committed by Jean-Paul Saman

Fix video decoding.

Signed-off-by: Jean-Paul Saman's avatarJean-Paul Saman <jean-paul.saman@m2x.nl>
parent 710c2084
......@@ -457,6 +457,12 @@ static picture_t *DecodeVideoBlock( decoder_t *p_dec, block_t **pp_block )
msg_Info( p_dec, "Yay! Frame decoded correctly" );
#endif
if( p_block->i_buffer == 0 )
{
block_Release( p_block ); /* Not sure about this one */
*pp_block = NULL;
}
return p_pic;
error:
......
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