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 0D35746A65 for ; Sun, 2 Jul 2023 13:16:53 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C605768C263; Sun, 2 Jul 2023 16:16:50 +0300 (EEST) Received: from mail-ot1-f42.google.com (mail-ot1-f42.google.com [209.85.210.42]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 82ED568B3CA for ; Sun, 2 Jul 2023 16:16:44 +0300 (EEST) Received: by mail-ot1-f42.google.com with SMTP id 46e09a7af769-6b74e2d8c98so3099756a34.2 for ; Sun, 02 Jul 2023 06:16:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688303802; x=1690895802; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=ANbjNhuBDleb7WLFDAh/Q4yjRbrx+Lk2ung0fPviBf0=; b=SdKvxlpXaXBe7hr81BUACGJ9hIIEVc7NlPuwCSrX0jB3TT7gFQqei6wjzZ5MpgKoSa iRHQQj2d14QsMWpf7eEZArlahy6Uairn9KENhLWZlOv6A5YQDbqkiOd3p8EaRikg0qRf hyW9MAIDp9UX5NYf/Wk73FLVNhs0X9L7HDz3z9upoetj4e3CyxnOTUmcvKoPFsni9A2O oIhDTemvouqy/eQZu7STChcZPSYkMWOP/IaNT9DJ2Rl/e+bsnbWtUiml+cnf682TVcmr TlBe6uAx6nb1IYClvNsQka6H/q9IGGC7KO5Jdg55iO9xJz9JiXD0a36KkJAME3gM+E+k YQdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688303802; x=1690895802; 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=ANbjNhuBDleb7WLFDAh/Q4yjRbrx+Lk2ung0fPviBf0=; b=DrGW19Hehacw3hnt4bk+zvDrYxfYL5t9EIKnVE1faz4R5wlUascZax8v0BK6u2mTl9 y549348hUMwmCbeQVU1lsKk8Hd1Ccw6ipK7t0dHa+510RBL3iKDeNVHx4j7UrVzTE5UC L8G8cDL0xKl9hNCTU/hto9f9LBKCX9ydMGso5pzlLXCWlYxT8ydI/IlLzKmSoKPaaB8u htUCYE/lvkYrfz2INQN31XHUW0UU48IDJ+zAAwduHahz17dEiUO7Py6NOmi4wavyvSdK zufMzK2GbW5/0Q7SBRm9xqoLN0OmxYj+X8MS7JbamgyrG/7Tvc1y8ViGgTCt9JAI1KtZ /2tA== X-Gm-Message-State: ABy/qLbYqHzIRjG9EdlLtTOnFNy+Nv3zfmNoNhtyupgFMUANO50M4f8m Q10rJf3cIyg3Y2cGOuz+tYH4CdQKHuM= X-Google-Smtp-Source: ACHHUZ4hG3UA+ISohtvlEU3kYfdEqHAQ8HR4OjgVoAZ5sCkuipx5GDeVtwNKnwswhZ+3kwmUe1J5Ug== X-Received: by 2002:a05:6870:3b07:b0:1a3:16af:56e2 with SMTP id gh7-20020a0568703b0700b001a316af56e2mr8589242oab.19.1688303802285; Sun, 02 Jul 2023 06:16:42 -0700 (PDT) Received: from localhost.localdomain (host197.190-225-105.telecom.net.ar. [190.225.105.197]) by smtp.gmail.com with ESMTPSA id gv15-20020a056870aa0f00b001b08f19ec4asm4917248oab.53.2023.07.02.06.16.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jul 2023 06:16:42 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Sun, 2 Jul 2023 10:16:29 -0300 Message-ID: <20230702131629.1794-1-jamrial@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] avcodec/cbs_h266: don't infer derived values 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: The macro is meant for coded values only. Signed-off-by: James Almer --- libavcodec/cbs_h266_syntax_template.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/cbs_h266_syntax_template.c b/libavcodec/cbs_h266_syntax_template.c index ae44565a54..957735056f 100644 --- a/libavcodec/cbs_h266_syntax_template.c +++ b/libavcodec/cbs_h266_syntax_template.c @@ -2015,9 +2015,9 @@ static int FUNC(pps) (CodedBitstreamContext *ctx, RWContext *rw, infer(pps_tile_column_width_minus1[0], pic_width_in_ctbs_y - 1); infer(pps_num_exp_tile_rows_minus1, 0); infer(pps_tile_row_height_minus1[0], pic_height_in_ctbs_y - 1); - infer(num_tile_columns, 1); - infer(num_tile_rows, 1); - infer(num_tiles_in_pic, 1); + current->num_tile_columns = 1; + current->num_tile_rows = 1; + current->num_tiles_in_pic = 1; } flag(pps_cabac_init_present_flag); -- 2.41.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".