]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vaapi_mpeg2.c
pthread_frame: do not run hwaccel decoding asynchronously unless it's safe
[ffmpeg] / libavcodec / vaapi_mpeg2.c
index b2417ee83046f9127b4228af5298bf3224f1dbc6..0d197c969288364081b487bd92813eb65cee76ae 100644 (file)
@@ -20,6 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#include "hwaccel.h"
 #include "mpegutils.h"
 #include "mpegvideo.h"
 #include "internal.h"
@@ -183,4 +184,5 @@ AVHWAccel ff_mpeg2_vaapi_hwaccel = {
     .init                 = &ff_vaapi_decode_init,
     .uninit               = &ff_vaapi_decode_uninit,
     .priv_data_size       = sizeof(VAAPIDecodeContext),
+    .caps_internal        = HWACCEL_CAP_ASYNC_SAFE,
 };