avutil/hwcontext_d3d12va: remove unused variables
Removes -Wunused-variable warnings. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -164,7 +164,6 @@ fail:
|
|||||||
|
|
||||||
static void d3d12va_frames_uninit(AVHWFramesContext *ctx)
|
static void d3d12va_frames_uninit(AVHWFramesContext *ctx)
|
||||||
{
|
{
|
||||||
AVD3D12VAFramesContext *frames_hwctx = ctx->hwctx;
|
|
||||||
D3D12VAFramesContext *s = ctx->internal->priv;
|
D3D12VAFramesContext *s = ctx->internal->priv;
|
||||||
|
|
||||||
D3D12_OBJECT_RELEASE(s->sync_ctx.fence);
|
D3D12_OBJECT_RELEASE(s->sync_ctx.fence);
|
||||||
@@ -272,8 +271,6 @@ fail:
|
|||||||
static int d3d12va_frames_init(AVHWFramesContext *ctx)
|
static int d3d12va_frames_init(AVHWFramesContext *ctx)
|
||||||
{
|
{
|
||||||
AVD3D12VAFramesContext *hwctx = ctx->hwctx;
|
AVD3D12VAFramesContext *hwctx = ctx->hwctx;
|
||||||
AVD3D12VADeviceContext *device_hwctx = ctx->device_ctx->hwctx;
|
|
||||||
D3D12VAFramesContext *s = ctx->internal->priv;
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < FF_ARRAY_ELEMS(supported_formats); i++) {
|
for (i = 0; i < FF_ARRAY_ELEMS(supported_formats); i++) {
|
||||||
@@ -326,7 +323,6 @@ static int d3d12va_transfer_get_formats(AVHWFramesContext *ctx,
|
|||||||
enum AVHWFrameTransferDirection dir,
|
enum AVHWFrameTransferDirection dir,
|
||||||
enum AVPixelFormat **formats)
|
enum AVPixelFormat **formats)
|
||||||
{
|
{
|
||||||
D3D12VAFramesContext *s = ctx->internal->priv;
|
|
||||||
enum AVPixelFormat *fmts;
|
enum AVPixelFormat *fmts;
|
||||||
|
|
||||||
fmts = av_malloc_array(2, sizeof(*fmts));
|
fmts = av_malloc_array(2, sizeof(*fmts));
|
||||||
|
|||||||
Reference in New Issue
Block a user