]> git.sesse.net Git - vlc/commitdiff
vda: readd ref buffer flag (for ffmpeg variant only)
authorDavid Fuhrmann <dfuhrmann@videolan.org>
Mon, 12 May 2014 21:20:19 +0000 (23:20 +0200)
committerDavid Fuhrmann <dfuhrmann@videolan.org>
Mon, 12 May 2014 21:20:19 +0000 (23:20 +0200)
modules/codec/avcodec/vda.c

index 3d054181d67881275a970b3dd5709799fde35620..9da05275206051271c780520566a80f950d3fbf8 100644 (file)
@@ -190,6 +190,7 @@ static int Setup( vlc_va_t *external, void **pp_hw_ctx, vlc_fourcc_t *pi_chroma,
 
     memset( &p_va->hw_ctx, 0, sizeof(p_va->hw_ctx) );
     p_va->hw_ctx.format = 'avc1';
+    p_va->hw_ctx.use_ref_buffer = 1;
 
     int i_pix_fmt = var_CreateGetInteger( p_va->p_log, "avcodec-vda-pix-fmt" );