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 A46CB48307 for ; Mon, 22 Apr 2024 20:31:27 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 7D7E668D2A9; Mon, 22 Apr 2024 23:31:24 +0300 (EEST) Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B668E68CE38 for ; Mon, 22 Apr 2024 23:31:18 +0300 (EEST) Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-41a5b68ed5cso14109985e9.2 for ; Mon, 22 Apr 2024 13:31:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jkqxz-net.20230601.gappssmtp.com; s=20230601; t=1713817878; x=1714422678; darn=ffmpeg.org; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=5/AgcsAlnhdw3Z4ZnHdUKmTchNHYS9qQSkUOULLEjBY=; b=nUezauIpuzWjlcz3WBQN6aLxBNTGj/aR/VG/vHP8FVjExddWdB04wppQ4XuF3DKYeW PnKukgBDxNgLmWUG6Lmr/6ptOCDKeIunCzIoMRH0nQNAYW5xTtFBCnf64od1zvT/Ae1Q uDwgJ9z5fGlpfUfC3EfVrZXX1W/qEz1Sybo03BwPGhTtouEqgpafrURvr+pRVvITUZxD yb49x6c1PzDeo8MBwrrx5XYzRTEVa4HQXdjg6NbqnjUGJx1ZWsr9LJLAuXoJdUbQBMIk OD0khciNFhT2jKoe/NdBWUAWP6WYb/P6USFmzHNcvAZ3xIzROKezSSXPtREwoFXt+fkE fE+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713817878; x=1714422678; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=5/AgcsAlnhdw3Z4ZnHdUKmTchNHYS9qQSkUOULLEjBY=; b=u4fZd+Ga58YR5o/KXrk4BKejFaOlJx4Lr8X91iwEquTV8lqq0SRGGHHmd0aN7j3tau ARJM38RghhMgfmGEJI44VHl5LH2+/gexxdpgK0Hz/Z6gmV8NOy+0L911rWCKahsGRZp/ TkfsDf1l3RRHxZgdhloNcYz6IXYsVeMNPYFKii4e/mcb2ghRKoJWMYaLKsvSRHnJMYpU COi5vtIP+OpBXx5o+qrNiL0gQPxxwb+XiURAtJIZEilM18DjFcuxLMQO3mKCm85PL5GY BNHbkCK+ZDwM2Frspzsdevpv3yO+EA75hjxcnENI7bSWPOu1/qM4MOJOu1vNj0z/ZGMa SR/w== X-Gm-Message-State: AOJu0YwBYDwYdYyot0MOpssr7+lHnAPcmsIKXaj5sTouY0pM/mOXA6f6 Ah+oI6fqsLt5BGCTj0TYn1uzEx2bdc3o1nsezhbAeR6734pQEZE9P3LkKUG9Dx2CPZJ4gdotDAb P X-Google-Smtp-Source: AGHT+IHKygSpd3XJ5vuUtCTc8BSfHdLs2t+m/kbhFv+Ske3VaTwAQTfF9aIAXQXuY7KVALsQsefNwg== X-Received: by 2002:a05:600c:46cb:b0:418:e3d5:5c28 with SMTP id q11-20020a05600c46cb00b00418e3d55c28mr10327780wmo.10.1713817877817; Mon, 22 Apr 2024 13:31:17 -0700 (PDT) Received: from [192.168.0.15] (cpc92302-cmbg19-2-0-cust1183.5-4.cable.virginm.net. [82.1.212.160]) by smtp.gmail.com with ESMTPSA id x5-20020a5d6b45000000b003472489d26fsm12938668wrw.19.2024.04.22.13.31.17 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Apr 2024 13:31:17 -0700 (PDT) Message-ID: <951824f2-abe7-4ed2-a2cf-12ecf67d27dd@jkqxz.net> Date: Mon, 22 Apr 2024 21:31:41 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: FFmpeg development discussions and patches From: Mark Thompson Subject: [FFmpeg-devel] [PATCH] av1dec: Fix RefFrameSignBias calculation 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: --- Actually match the specification. (Though I'm guessing this field isn't actually used if things pass anyway?) libavcodec/av1dec.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c index 69da08b686..79a30a114d 100644 --- a/libavcodec/av1dec.c +++ b/libavcodec/av1dec.c @@ -373,8 +373,13 @@ static void order_hint_info(AV1DecContext *s) int ref_order_hint = s->ref[ref_slot].order_hint; frame->order_hints[ref_name] = ref_order_hint; - frame->ref_frame_sign_bias[ref_name] = - get_relative_dist(seq, ref_order_hint, frame->order_hint); + if (!seq->enable_order_hint) { + frame->ref_frame_sign_bias[ref_name] = 0; + } else { + frame->ref_frame_sign_bias[ref_name] = + get_relative_dist(seq, ref_order_hint, + frame->order_hint) > 0; + } } } -- 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".