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 0A60A47518 for ; Sun, 10 Sep 2023 15:32:31 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1D22A68C8EB; Sun, 10 Sep 2023 18:32:29 +0300 (EEST) Received: from w4.tutanota.de (w4.tutanota.de [81.3.6.165]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2BE0A68C8B2 for ; Sun, 10 Sep 2023 18:32:22 +0300 (EEST) Received: from tutadb.w10.tutanota.de (unknown [192.168.1.10]) by w4.tutanota.de (Postfix) with ESMTP id 850301060152 for ; Sun, 10 Sep 2023 15:32:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1694359942; s=s1; d=lynne.ee; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=h2QXlylLB/DQrMuIc1hT1gVY9h4a3ljJ4SuGtKqYqUc=; b=s8fCnV0622kkFcqDeo+v+rX99KvqT6cZ6bhvRoTNhxNFIJoBPpgd0//5inVI/82T mkt1eOR+kHmHA8S+3Y4Q0CE4zHI88JIMMju0Z9A4EJcDvyHMlPEjq1r9DxZwx7ekUGs DQae15Cz1R9tXKd9V+MdUtjlF0Fxxmpph4+eqrvwd0DwaKCH8QnMBveNgoCHLvd7gpx d8mX0dn9OW/qOKqVbnUa8ryn7XM0qFVg335nR4AHNJ2dPew87haY0vzkFfJFXqiidwD Eq9GDbB80n+UmHpYyXEqcjtLaz+Clj+wJKo/Dspn68Ia+FkDDYrQUDJ2K/uCSKWcuJe GXmuhMJbHw== Date: Sun, 10 Sep 2023 17:32:22 +0200 (CEST) From: Lynne To: FFmpeg development discussions and patches Message-ID: In-Reply-To: <20230910152522.27429-4-llyyr.public@gmail.com> References: <20230910152522.27429-2-llyyr.public@gmail.com> <20230910152522.27429-4-llyyr.public@gmail.com> MIME-Version: 1.0 Subject: Re: [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 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: Sep 10, 2023, 17:26 by llyyr.public@gmail.com: > 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); > Both patches lgtm Thanks _______________________________________________ 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".