[vlc-commits] avcodec: allow hardware acceleration plugin to use pic->opaque

Rémi Denis-Courmont git at videolan.org
Thu Jan 10 19:33:10 CET 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jan 10 20:05:30 2013 +0200| [3d29910e66214abb38d72a5d8172c4402144eb0d] | committer: Rémi Denis-Courmont

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3d29910e66214abb38d72a5d8172c4402144eb0d
---

 modules/codec/avcodec/video.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 8782e42..c295c67 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -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] ) )
             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 */
             p_pic = ffmpeg_NewPictBuf( p_dec, p_context );



More information about the vlc-commits mailing list