Message ID | 20170321224358.21315-3-sw@jkqxz.net |
---|---|
State | Accepted |
Commit | 14c1101518388f0f190c4737ea1b88d8b55b5281 |
Headers | show |
Hi, On Tue, Mar 21, 2017 at 6:43 PM, Mark Thompson <sw@jkqxz.net> wrote: > --- > This was missed in e0cd598bc4684654d63942e9ff4872c0b48a7dc2 because it > wasn't in libav at the time. > > > libavcodec/vaapi_hevc.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/libavcodec/vaapi_hevc.c b/libavcodec/vaapi_hevc.c > index 2b0e8ff326..34d32795b7 100644 > --- a/libavcodec/vaapi_hevc.c > +++ b/libavcodec/vaapi_hevc.c > @@ -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, > }; > -- > 2.11.0 LGTM. Ronald
diff --git a/libavcodec/vaapi_hevc.c b/libavcodec/vaapi_hevc.c index 2b0e8ff326..34d32795b7 100644 --- a/libavcodec/vaapi_hevc.c +++ b/libavcodec/vaapi_hevc.c @@ -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, };