[vlc-devel] [PATCH 2/2] directx_va: don't start the surface order at 0
Steve Lhomme
robux4 at videolabs.io
Mon Oct 3 17:22:01 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 699fb22..e6f4f0e 100644
--- a/modules/codec/avcodec/directx_va.c
+++ b/modules/codec/avcodec/directx_va.c
@@ -406,7 +406,7 @@ int directx_va_Get(vlc_va_t *va, directx_sys_t *dx_sys, picture_t *pic, uint8_t
vlc_va_surface_t *surface = &dx_sys->surface[i];
surface->refcount = 1;
- surface->order = dx_sys->surface_order++;
+ surface->order = ++dx_sys->surface_order;
*data = (void *)dx_sys->hw_surface[i];
pic->context = surface;
--
2.8.2
More information about the vlc-devel
mailing list