Commit 3d29910e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

avcodec: allow hardware acceleration plugin to use pic->opaque

parent 638e716b
...@@ -716,7 +716,7 @@ picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block ) ...@@ -716,7 +716,7 @@ picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
if( !b_drawpicture || ( !p_sys->p_va && !p_sys->p_ff_pic->linesize[0] ) ) if( !b_drawpicture || ( !p_sys->p_va && !p_sys->p_ff_pic->linesize[0] ) )
continue; continue;
if( !p_sys->p_ff_pic->opaque ) if( p_sys->p_va != NULL || p_sys->p_ff_pic->opaque == NULL )
{ {
/* Get a new picture */ /* Get a new picture */
p_pic = ffmpeg_NewPictBuf( p_dec, p_context ); p_pic = ffmpeg_NewPictBuf( p_dec, p_context );
......
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