Commit 1c93dc90 authored by Jean-Paul Saman's avatar Jean-Paul Saman

davinci video: fix error path

parent 0ccea1b2
...@@ -231,6 +231,7 @@ static picture_t *DecodeVideoBlockInner( decoder_t *p_dec, block_t **pp_block, i ...@@ -231,6 +231,7 @@ static picture_t *DecodeVideoBlockInner( decoder_t *p_dec, block_t **pp_block, i
{ {
decoder_sys_t *p_sys = p_dec->p_sys; decoder_sys_t *p_sys = p_dec->p_sys;
block_t *p_block; block_t *p_block;
picture_t *p_pic = NULL;
VIDDEC_InArgs in_args; VIDDEC_InArgs in_args;
VIDDEC_OutArgs out_args; VIDDEC_OutArgs out_args;
VIDDEC_DynamicParams dparams; VIDDEC_DynamicParams dparams;
...@@ -395,7 +396,7 @@ static picture_t *DecodeVideoBlockInner( decoder_t *p_dec, block_t **pp_block, i ...@@ -395,7 +396,7 @@ static picture_t *DecodeVideoBlockInner( decoder_t *p_dec, block_t **pp_block, i
/ status.outputHeight; /* FIXME */ / status.outputHeight; /* FIXME */
/* Get a new picture */ /* Get a new picture */
picture_t *p_pic = decoder_NewPicture( p_dec ); p_pic = decoder_NewPicture( p_dec );
if( !p_pic ) if( !p_pic )
{ {
msg_Err( p_dec, "Could not get picture" ); msg_Err( p_dec, "Could not get picture" );
......
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