[vlc-devel] [PATCH 1/6] directx_va: don't use the first index if it's refcounted
Steve Lhomme
robux4 at videolabs.io
Tue Oct 4 17:40:23 CEST 2016
---
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 3c12e0c..6f3139f 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;
--
2.8.2
More information about the vlc-devel
mailing list