On 06/08/16 23:22, Mark Thompson wrote:
> Moves much of the setup logic for VAAPI decoding into lavc; the user
> now need only provide the hw_frames_ctx.
>
> Also deprecates struct vaapi_context and the installed header vaapi.h
> which contains it, while continuing to support it in the new code.
> ---
> Now avoids mapping buffers entirely.
>
> doc/APIchanges | 3 +
> libavcodec/Makefile | 5 +-
> libavcodec/vaapi_decode.c | 548
> ++++++++++++++++++++++++++++++++++++++++++++++
> libavcodec/vaapi_decode.h | 96 ++++++++
> libavcodec/version.h | 5 +-
> 5 files changed, 654 insertions(+), 3 deletions(-)
> create mode 100644 libavcodec/vaapi_decode.c
> create mode 100644 libavcodec/vaapi_decode.h
>
> ...
>
> +int ff_vaapi_decode_make_slice_buffer(AVCodecContext *avctx,
> + VAAPIDecodePicture *pic,
> + const void *params_data,
> + size_t params_size,
> + const void *slice_data,
> + size_t slice_size)
> +{
> + VAAPIDecodeContext *ctx = avctx->internal->hwaccel_priv_data;
> + VAStatus vas;
> + int err, index;
.../libavcodec/vaapi_decode.c: In function ‘ff_vaapi_decode_make_slice_buffer’:
.../libavcodec/vaapi_decode.c:65:9: warning: unused variable ‘err’
[-Wunused-variable]
int err, index;
^
Removed locally.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel