[vlc-commits] directx_va: don't use the first index if it's refcounted

Steve Lhomme git at videolan.org
Sun Oct 9 10:46:24 CEST 2016


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Mon Oct  3 17:21:15 2016 +0200| [f691ebf3acb77aab80b7a5868bb3cabfa9e27ac9] | committer: Jean-Baptiste Kempf

directx_va: don't use the first index if it's refcounted

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

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

diff --git a/modules/codec/avcodec/directx_va.c b/modules/codec/avcodec/directx_va.c
index 251a845..699fb22 100644
--- a/modules/codec/avcodec/directx_va.c
+++ b/modules/codec/avcodec/directx_va.c
@@ -390,7 +390,7 @@ int directx_va_Get(vlc_va_t *va, directx_sys_t *dx_sys, picture_t *pic, uint8_t
 
     for (i = 0; i < dx_sys->surface_count; i++) {
         vlc_va_surface_t *surface = &dx_sys->surface[i];
-        if ((old == -1 || surface->order < dx_sys->surface[old].order) && !surface->refcount)
+        if (((old == -1 || surface->order < dx_sys->surface[old].order)) && !surface->refcount)
             old = i;
         if (old_used == -1 || surface->order < dx_sys->surface[old_used].order)
             old_used = i;



More information about the vlc-commits mailing list