vaapi_hevc: Mark as async-safe
authorMark Thompson <sw@jkqxz.net>
Tue, 21 Mar 2017 22:31:04 +0000 (22:31 +0000)
committerMark Thompson <sw@jkqxz.net>
Wed, 22 Mar 2017 19:07:32 +0000 (19:07 +0000)
libavcodec/vaapi_hevc.c

index 2b0e8ff..34d3279 100644 (file)
@@ -25,6 +25,7 @@
 
 #include "avcodec.h"
 #include "hevc.h"
+#include "hwaccel.h"
 #include "vaapi_decode.h"
 
 typedef struct VAAPIDecodePictureHEVC {
@@ -434,4 +435,5 @@ AVHWAccel ff_hevc_vaapi_hwaccel = {
     .init                 = ff_vaapi_decode_init,
     .uninit               = ff_vaapi_decode_uninit,
     .priv_data_size       = sizeof(VAAPIDecodeContext),
+    .caps_internal        = HWACCEL_CAP_ASYNC_SAFE,
 };