From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 572EB47AEE for ; Sun, 31 Dec 2023 20:24:35 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8CAFC68CCB3; Sun, 31 Dec 2023 22:24:33 +0200 (EET) Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4700368C14E for ; Sun, 31 Dec 2023 22:24:27 +0200 (EET) Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-6d9bba6d773so4059645b3a.1 for ; Sun, 31 Dec 2023 12:24:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704054264; x=1704659064; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=UeSHsOCD1VeBh3c1Ecfd/5AMk4nioGBw31DVXJZNZwo=; b=CCnf4aFJMoyLNHU6F4oDlQW1JHz7WWu3HUSTA9YTgCYieGrP9UNgyeJthgdhmhwIXL canE2D5PBrmoERuug0E/+9/OQQaMHj7DKX0P6osxsacpXhOjdgkLPJVzA7REn6zOiMuc geG599pAOfdjtSOJHtas3W3neNHJIjzEsZMqzQ1uUGTIOa2fj/g/UZuVmC5dtS34q4b2 hK/IKXI39oanKLY9u9yJ/2Z3ST3+zNvUZTAQ2bPvUXlZIE5SFz5+8aXKivY66hcwI6Uq NjYQ5goJWMW0wMCOBNdHFs79EOHJRbeYB16r6a8H49wavUTKdznN31ryT/5novKzNSKq y2aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704054264; x=1704659064; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=UeSHsOCD1VeBh3c1Ecfd/5AMk4nioGBw31DVXJZNZwo=; b=Jo/zFn89u1eNjdhY1s1uWHWxUsNWsGf0XvY+oTk0zL8+/a3iVLgbDZ+qpkIzevV1rm fwctJYOgdZKxOw2jvAWN9COxae+4ly5OvUIk+E25XOUjB0duM6Fkz0wCy3mp0MYabQzi PFdQK5PalAKDKKp3g0qXvXuwvsE9rJn4uBp4Ssq8uMnBpN4/sHSWr4ywWXQ2n/f7rGH0 134uHZfWLgAIpzbtPHu3BRDTQWVZbrRF8RmswbAOyvG0lZwbiYompWQiqW/2MLyxOccv Cw52adj11C5AJxqh6m3Wmt1yXdtKfEWgZd+a/WVXnw8w6FYl7B8bUKhvgIPXBXHamiLl RiVQ== X-Gm-Message-State: AOJu0YxeICQor17p1gjyQ8ZAuPwi7rxd/2WLk91a4TG7s5aXxaksnnUj +eybwLIPwJtqDX2YSALe+a44/mv7XvU= X-Google-Smtp-Source: AGHT+IEs00X7zG88+JzbPfM8eQGZ/gSq3+nRH9EKBvihKBxr6Iw2lkQzE8QwbfRP4iJtv9RqiD7PPw== X-Received: by 2002:a62:bd19:0:b0:6d9:8453:e040 with SMTP id a25-20020a62bd19000000b006d98453e040mr14177163pff.1.1704054264290; Sun, 31 Dec 2023 12:24:24 -0800 (PST) Received: from localhost.localdomain (host197.190-225-105.telecom.net.ar. [190.225.105.197]) by smtp.gmail.com with ESMTPSA id e27-20020a056a0000db00b006d9bf71461asm11403874pfj.86.2023.12.31.12.24.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Dec 2023 12:24:23 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Sun, 31 Dec 2023 17:24:44 -0300 Message-ID: <20231231202445.2023-1-jamrial@gmail.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/2] avcodec/d3d12va_mpeg2: remove unused variables X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Signed-off-by: James Almer --- is_field worries me. Was it a copy-paste left over, or is it meant to be checked? libavcodec/d3d12va_mpeg2.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libavcodec/d3d12va_mpeg2.c b/libavcodec/d3d12va_mpeg2.c index 91bf3f8b75..a2ae8bf948 100644 --- a/libavcodec/d3d12va_mpeg2.c +++ b/libavcodec/d3d12va_mpeg2.c @@ -49,7 +49,6 @@ static int d3d12va_mpeg2_start_frame(AVCodecContext *avctx, av_unused const uint const MpegEncContext *s = avctx->priv_data; D3D12VADecodeContext *ctx = D3D12VA_DECODE_CONTEXT(avctx); D3D12DecodePictureContext *ctx_pic = s->current_picture_ptr->hwaccel_picture_private; - DXVA_QmatrixData *qm = &ctx_pic->qm; if (!ctx) return -1; @@ -76,8 +75,6 @@ static int d3d12va_mpeg2_decode_slice(AVCodecContext *avctx, const uint8_t *buff const MpegEncContext *s = avctx->priv_data; D3D12DecodePictureContext *ctx_pic = s->current_picture_ptr->hwaccel_picture_private; - int is_field = s->picture_structure != PICT_FRAME; - if (ctx_pic->slice_count >= MAX_SLICES) { return AVERROR(ERANGE); } @@ -94,9 +91,6 @@ static int d3d12va_mpeg2_decode_slice(AVCodecContext *avctx, const uint8_t *buff static int update_input_arguments(AVCodecContext *avctx, D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *input_args, ID3D12Resource *buffer) { - D3D12VADecodeContext *ctx = D3D12VA_DECODE_CONTEXT(avctx); - AVHWFramesContext *frames_ctx = D3D12VA_FRAMES_CONTEXT(avctx); - AVD3D12VAFramesContext *frames_hwctx = frames_ctx->hwctx; const MpegEncContext *s = avctx->priv_data; D3D12DecodePictureContext *ctx_pic = s->current_picture_ptr->hwaccel_picture_private; @@ -147,7 +141,6 @@ static int d3d12va_mpeg2_end_frame(AVCodecContext *avctx) { int ret; MpegEncContext *s = avctx->priv_data; - D3D12VADecodeContext *ctx = D3D12VA_DECODE_CONTEXT(avctx); D3D12DecodePictureContext *ctx_pic = s->current_picture_ptr->hwaccel_picture_private; if (ctx_pic->slice_count <= 0 || ctx_pic->bitstream_size <= 0) @@ -163,7 +156,6 @@ static int d3d12va_mpeg2_end_frame(AVCodecContext *avctx) static int d3d12va_mpeg2_decode_init(AVCodecContext *avctx) { - const MpegEncContext *s = avctx->priv_data; D3D12VADecodeContext *ctx = D3D12VA_DECODE_CONTEXT(avctx); ctx->cfg.DecodeProfile = D3D12_VIDEO_DECODE_PROFILE_MPEG2; -- 2.43.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".