[vlc-commits] vda: use the ffmpeg api to avoid memleaks.

David Fuhrmann git at videolan.org
Sun Feb 2 15:46:33 CET 2014


vlc/vlc-2.1 | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Sun Feb  2 15:40:57 2014 +0100| [38820b3cb1dbb7f2455f59416ab4ac2da199ec85] | committer: David Fuhrmann

vda: use the ffmpeg api to avoid memleaks.

This will not compile with libav. Libav needs to be fixed before we can
support it again here.

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=38820b3cb1dbb7f2455f59416ab4ac2da199ec85
---

 modules/codec/avcodec/vda.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/codec/avcodec/vda.c b/modules/codec/avcodec/vda.c
index 5bdb4cc..c93cf90 100644
--- a/modules/codec/avcodec/vda.c
+++ b/modules/codec/avcodec/vda.c
@@ -162,6 +162,7 @@ static int Setup( vlc_va_t *external, void **pp_hw_ctx, vlc_fourcc_t *pi_chroma,
     p_va->hw_ctx.width = i_width;
     p_va->hw_ctx.height = i_height;
     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" );
 



More information about the vlc-commits mailing list