From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id BEF0F4F0D7 for ; Sun, 15 Jun 2025 16:55:41 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 52C6868D5FB; Sun, 15 Jun 2025 19:55:13 +0300 (EEST) Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 756F368D5E2 for ; Sun, 15 Jun 2025 19:55:10 +0300 (EEST) Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-748764d8540so3315714b3a.0 for ; Sun, 15 Jun 2025 09:55:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750006509; x=1750611309; darn=ffmpeg.org; h=cc:to:mime-version:content-transfer-encoding:fcc:subject:date :references:in-reply-to:message-id:from:from:to:cc:subject:date :message-id:reply-to; bh=2Z8DHS19gCe2nwyGYwyf2Kk/CGc97+0VCTPvmKSancg=; b=WUUU+ZSxYwFA4AzBwMLA7QSmXRmcKbBlbx5T2BA/M+T/KZ9Le2szUCroBiiDjfAdfH pYuwxOG9v92Y2UGhVE9JvVQXjlvF2NznRxv9xXfKGziI5lUqFh/fazV0SjJuCbaWiQ/N sX6DgKyLBAat93ZrFj1X6SsKLQ5vAnwv365wyoIOW8qCMMw3qq1TJFWYzURG7ykc98AE 5Q2ieERGC97mhL7KohY6aAUU7nLk71bcr1k3du5jtui48tQ//UvnTRl+CrlZ5WOhunh1 cxyOgoxTBVjx6WtEZ6KP3qiepWJjVSIFZFAbT4VcCQp0s/HG7HD7Jrzcg8PahvRPHKKs QpBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750006509; x=1750611309; h=cc:to:mime-version:content-transfer-encoding:fcc:subject:date :references:in-reply-to:message-id:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=2Z8DHS19gCe2nwyGYwyf2Kk/CGc97+0VCTPvmKSancg=; b=IDZE1puo01xjsZgOmnPylhkPJvBtCwAtEwIkmAWTSRSxZDnzVlQ9u6A5zRyZG2hvjj BiR3fVqjPHxq223eynI8T07hFw3gOh4/ZQW2cCgFDC/1E5JdMG+qGX5SIMzR2ZZprzg1 wmjL5VgBz9DrvRF0rspMz1/FFLlNiZsaJ4IA4ZaRIGCGX8dty2D4KhrzUHKSpAP4TLei G8iYWpg6YCVMha2uGohZ0aOPEraNitklnFlOklZpBMEzrqsvnfEKKEy17wjZ+PO2ktpE +2Cz6mYaIWjm5duYJHUEGqxVCjq3LzXJsHSrcU6g3vyHz5+w6Dnn3fSPuXZSt9+SZs6q xCsA== X-Gm-Message-State: AOJu0YwEKtqGGRQwOeZCygFUr0GLCYuugVZ90n6zzBbHCxxCM8kG/M5n FJjmatikSy06ZKE+Br1ZE2UY/4+b4P1QHo+ip7LdEw/eDHvLwHIQFiCISGPdeg== X-Gm-Gg: ASbGncusXTY4ZBdc2ER3jF5quO0b62NYhFA9a+qnwuK2LgRsNxmUrcF+ODQDViWK5X8 YSDieQN508EnzzPsDDBUXyweqy+1/ugM8s+UY3Ye5KYuNIRuJWHzyPuxOlx0Q3L/RPyA6KoTgKK 3UZGaNH9nMMjv3nVoCQcrXwcmtgEFCtebvI/UYO5qDltj6MZw3P77G7dGwVokdfz89D2lqrcK7D WnvDgTMZclXnojMYOJ3rO9uTibO6F3glOyyL2CAU456RRT96bhibBTbxsbxvSS2pFwhfvFjOxG3 XdROkT9dmw0lwb8E7aR6yUBXLP35TSAc+C9TApDYv6fYcwHz7UiIXmbhFeNcixH39cnmUNAkjqS +fflWHIFnjnJ4fscQ X-Google-Smtp-Source: AGHT+IHRbInnKN9jeAVLstCSy3GwDfbVNaUvR3owpyAmIdDQix6BuuTkUMTf6wwK+1KycoIwdVLGLQ== X-Received: by 2002:a05:6a00:3cd5:b0:748:38fa:89b6 with SMTP id d2e1a72fcca58-7489d04fba5mr8913082b3a.23.1750006508526; Sun, 15 Jun 2025 09:55:08 -0700 (PDT) Received: from [127.0.0.1] (master.gitmailbox.com. [34.83.118.50]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-74890082b1csm5239203b3a.103.2025.06.15.09.55.08 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Jun 2025 09:55:08 -0700 (PDT) From: Andreas Rheinhardt X-Google-Original-From: Andreas Rheinhardt Message-Id: <6652eb5d42035602285651340925ef49bf3f450b.1750006479.git.ffmpegagent@gmail.com> In-Reply-To: References: Date: Sun, 15 Jun 2025 16:53:55 +0000 Fcc: Sent MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] [PATCH 04/47] avcodec/ituh263dec: Don't process unnecessarily many coefficients 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 Cc: Andreas Rheinhardt 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: From: Andreas Rheinhardt Overriding the number of coefficients is only necessary if ac_pred is in used, not for h263_aic alone (for which only the DC coefficient is predicted) as it is done here. And since d50635cd247e17fe16c63219b9ae80d45a8185b1 the H.263 unquantize-intra functions override the number of coefficients in case of ac_pred, so we don't have to do this here. Signed-off-by: Andreas Rheinhardt --- libavcodec/ituh263dec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavcodec/ituh263dec.c b/libavcodec/ituh263dec.c index 21c78f3cb5..5e1d15e557 100644 --- a/libavcodec/ituh263dec.c +++ b/libavcodec/ituh263dec.c @@ -542,10 +542,10 @@ static int h263_decode_block(MpegEncContext * s, int16_t * block, scan_table = s->intra_scantable.permutated; if (s->h263_aic && s->mb_intra) { + i = 0; if (!coded) goto not_coded; rl = &ff_rl_intra_aic; - i = 0; if (s->ac_pred) { if (s->h263_aic_dir) scan_table = s->permutated_intra_v_scantable; /* left */ @@ -672,7 +672,6 @@ retry: if (s->mb_intra && s->h263_aic) { not_coded: h263_pred_acdc(s, block, n); - i = 63; } s->block_last_index[n] = i; return 0; -- ffmpeg-codebot _______________________________________________ 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".