From patchwork Fri Mar 15 11:58:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niklas Haas X-Patchwork-Id: 47101 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:8c91:b0:1a3:31a3:7958 with SMTP id k17csp193807pzh; Fri, 15 Mar 2024 05:05:31 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVw+dIi7ihWKP0QsYNAZJek+uCHcMq+bCHcp1mmFg0A8opw+Ps4MewfVGI1ew8iUjoTwfG+I2gJcY9OHTXWFEmjTPcjvi4XOg1fdA== X-Google-Smtp-Source: AGHT+IEm3dihXV2YMwVCQpSNkM/k0ZP1BoclFl2otNEMn9DTsmzzLvuR8Dvg2rcFICQHr2I1FmXc X-Received: by 2002:a17:906:3299:b0:a46:53e7:999f with SMTP id 25-20020a170906329900b00a4653e7999fmr3344042ejw.4.1710504331268; Fri, 15 Mar 2024 05:05:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1710504331; cv=none; d=google.com; s=arc-20160816; b=Av/fLciu4QpmJ7teVRkFvYkrwwEEnk/4p/Ol9phlS0hwOVjf19kIJh4NYmNGOzjwEW 18VaMZ1jOCAwHOsjtHbMD/P5GV8EhrUBVGW4F79MY8UuOQQNsx8m9F58qzcAY1aGXDg7 Vh/Mi6HxsoS1t8Rx7fY74c89dfPh+XvCnHDbIsdw97jaTAm5xSoRFI+ptl0awLkM9t55 F1OGyMcofikDPkZSMA1sNHIuLalz9EpqJsayufEKmx6GnnyfFzBh3VMNObRAYuFWklpq zfLdoRuWQ/q6FzytW+aQx72gsyaV5X7NcPUGDZ5gEoMmmtMiZ2LLugwcFaPEVMUNQ4La 2Tqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:delivered-to; bh=EnpgT5DrQ6SCirRpqHbR4ZzxETrAYkuW9tI4IstzauQ=; fh=xmAeKtysnShNOmkhiJmYkS30uw4Fu2hvBJ7qlIwukxQ=; b=iVwAuIAp7DjQCKxD42jCN63sGTIr8kX80+1jmIpHsf/EB6u5GPFeM236yE0/WroaJU 1KyR9qjS8uuoaNkxxaiEKvWn8p5sLhpNaqplHSmX5H1i7UEevrGWR1njTk7F+b9J2wXr 3MzFBcYfgg6NYtFXsVdBim9GPUPnUkYzJbR4Qd5QKvSz/QvcQjHoMoeOznf6jMrI8MsW j27jaWbj8TnztoQr+KLPqqSeJJ5wZ14xxu26KbSH/NV6jsqJO6CmnkVlpbvN/Rwx6S8O Ni6PU5bOH+PYFp2X9H0jeprbh82Pg/EpZ4GHvmaEAyJB9jpwE5Cv+V7yyWbJQ9gqAs1C zMPg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@haasn.xyz header.s=mail header.b=ftERFgq3; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id ht17-20020a170907609100b00a465d48539dsi1710279ejc.242.2024.03.15.05.05.19; Fri, 15 Mar 2024 05:05:31 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@haasn.xyz header.s=mail header.b=ftERFgq3; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2780668D083; Fri, 15 Mar 2024 14:04:56 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from haasn.dev (haasn.dev [78.46.187.166]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C742068CF9D for ; Fri, 15 Mar 2024 14:04:46 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=haasn.xyz; s=mail; t=1710504286; bh=yks3L25oFVBI7mdPqjzuXrM286X52Xqw0SVp19lhlv0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ftERFgq3LOz02zG/25ifFSTRAfJkNDDFZh6sijgpQqt8QxevxE47WyciIZ3g40Nws hK3veWEtthMYV5NRhIxM7f+amBGdNTavG7YGpfSv7Euhei+fHYBvf+pD9fLU9fGKh4 MI40P6DZszAvjsdJZitQgSqZdHHN7XbvAdv7dELc= Received: from haasn.dev (unknown [10.30.0.2]) by haasn.dev (Postfix) with ESMTP id 83677424EE; Fri, 15 Mar 2024 13:04:46 +0100 (CET) From: Niklas Haas To: ffmpeg-devel@ffmpeg.org Date: Fri, 15 Mar 2024 12:58:55 +0100 Message-ID: <20240315120442.73754-3-ffmpeg@haasn.xyz> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240315120442.73754-1-ffmpeg@haasn.xyz> References: <20240315120442.73754-1-ffmpeg@haasn.xyz> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v3 2/9] avcodec/av1dec: initialize AFGS1 VSC metadata 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: Niklas Haas Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: aLXt2ZwXMrDk From: Niklas Haas Unused by AV1, but should still be set properly. --- libavcodec/av1dec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c index e6346b51dbe..8a5796c757f 100644 --- a/libavcodec/av1dec.c +++ b/libavcodec/av1dec.c @@ -1124,6 +1124,10 @@ static int export_film_grain(AVCodecContext *avctx, AVFrame *frame) aom->uv_mult_luma[1] = film_grain->cr_luma_mult; aom->uv_offset[0] = film_grain->cb_offset; aom->uv_offset[1] = film_grain->cr_offset; + aom->color_range = AVCOL_RANGE_UNSPECIFIED; + aom->color_primaries = AVCOL_PRI_UNSPECIFIED; + aom->color_trc = AVCOL_TRC_UNSPECIFIED; + aom->color_space = AVCOL_SPC_UNSPECIFIED; return 0; }