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 96ED84750A for ; Sun, 10 Sep 2023 15:26:14 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 7089568C912; Sun, 10 Sep 2023 18:26:13 +0300 (EEST) Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 704DB68C8EA for ; Sun, 10 Sep 2023 18:26:07 +0300 (EEST) Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-1bc0d39b52cso24949625ad.2 for ; Sun, 10 Sep 2023 08:26:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694359565; x=1694964365; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/3QdJuLTbKb6EwAsFShzzUtCg6RM8guwEpx5fCtrRZg=; b=qvMIOiB4CyGtSNpmRsxIf7w5718Ujjk0HAI3iojU+DABAbmcjPFwwobskEs/s2F6it SxCf1HIQt/te1k8LvyYFPU8couWWpyTg7wUoU49wi7PWPzyfeR91asi06DobEp6l7top cFkw/zAcaI+/GsrCaW+kt4mdnESBIz7qlbFjIE/QsT3cu007FrGJiy3+cFdddJkcKKrG iqO/mmi6IjIMKOcLUCeLit2sIxoi70w3U64xUQPxRlumtRBHE4X66w57ByIP55Ghs2pl d/jlT1/5lmtT9e8Mmko7NZhvBmI+BW2xHTSSyMHx/w7jP3FDo0F5uCcEBJwVIFZMxGDs UpYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694359565; x=1694964365; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/3QdJuLTbKb6EwAsFShzzUtCg6RM8guwEpx5fCtrRZg=; b=nEroLAFOk9S1/AfYiDUtdwiaDbYNvk06hoafp9Z9AmSDIzrNIHd4oEA2bA1wSn0bBE x0rwLcMGh6DntFSxlzqLnvwL+27diAmDQXs26sBzbmztaSMzuX7urYOg8vcOAwlMvfcu +WM7vwxKenI9QZrcnVSxVFIZ7vxeH2bDttu6Y70YzdLZkv/9ZEyq+l0KEg8Z2O8+dfNG SDMV4yQjnJb6LxqRFyJ1Dx5pm+xYt5Uq9TgIRI2mZhwgLQuYoG+rfB89dLc5iweEvM7a 3zm4YI2iggg1Qez6LAtWGz7Zy3FZ1+SqPhK/eipb26Lf0+RAwdNJ1/5mPF/2CQgwYpSo /ADg== X-Gm-Message-State: AOJu0Yw31fWiFwAdlBcpTQUY30GKJn33KJluzcOU+U4Ne+k+eElkSYdh YujyAv3K/YshszamVoIHGlzseHTfMb4= X-Google-Smtp-Source: AGHT+IErSOZBt9ehHBQIW8AbCpbL+pO4DaugSHYMr+wS/oUmgG8NKoBl9q6anN7whiCfBUPerWDqqQ== X-Received: by 2002:a17:902:8c85:b0:1bb:3979:d467 with SMTP id t5-20020a1709028c8500b001bb3979d467mr5624264plo.63.1694359565420; Sun, 10 Sep 2023 08:26:05 -0700 (PDT) Received: from localhost.localdomain ([103.194.71.93]) by smtp.gmail.com with ESMTPSA id w6-20020a170902e88600b001bbdf32f011sm4717922plg.269.2023.09.10.08.26.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Sep 2023 08:26:05 -0700 (PDT) From: llyyr To: ffmpeg-devel@ffmpeg.org Date: Sun, 10 Sep 2023 20:55:24 +0530 Message-ID: <20230910152522.27429-4-llyyr.public@gmail.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230910152522.27429-2-llyyr.public@gmail.com> References: <20230910152522.27429-2-llyyr.public@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 2/2] hevc_ps: fix fixed_rate check 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: llyyr 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: Fixes: fc429d785e9e24c5520ce716d4bc3b5547e581eb Since fc429d785e9e24c5520ce716d4bc3b5547e581eb splits the fixed_rate flag into general and within_cvs, check for both. --- libavcodec/hevc_ps.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c index ac3fe55b07..7507d2bf9c 100644 --- a/libavcodec/hevc_ps.c +++ b/libavcodec/hevc_ps.c @@ -409,7 +409,8 @@ static int decode_hrd(GetBitContext *gb, int common_inf_present, if (!hdr->flags.fixed_pic_rate_general_flag) hdr->flags.fixed_pic_rate_within_cvs_flag = get_bits1(gb); - if (hdr->flags.fixed_pic_rate_within_cvs_flag) + if (hdr->flags.fixed_pic_rate_within_cvs_flag || + hdr->flags.fixed_pic_rate_general_flag) hdr->elemental_duration_in_tc_minus1[i] = get_ue_golomb_long(gb); else hdr->flags.low_delay_hrd_flag = get_bits1(gb); -- 2.42.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".