From patchwork Sun Oct 8 11:57:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Steven X-Patchwork-Id: 44209 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:4e24:b0:15d:8365:d4b8 with SMTP id gk36csp862136pzb; Sun, 8 Oct 2023 04:58:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGCQ04N8VCvK+ZsNmvgtudvMCIqY6Ko9oa7LBLUUjNrY8c8bQUCA7gQO25zIHgrlX9T0Osw X-Received: by 2002:a17:906:8a52:b0:9a9:e943:b601 with SMTP id gx18-20020a1709068a5200b009a9e943b601mr9137183ejc.46.1696766297978; Sun, 08 Oct 2023 04:58:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696766297; cv=none; d=google.com; s=arc-20160816; b=QDIugH8XfJsrQfO7jGGOvRsbZbhaNPirUN7u4HvAvcaDnfRB9/L0q5vTFECn/+CpR4 Whhu393uXXf/h1DUcbDqqg+udzBaqqxjH/X2dPDQueu4P+6gmuMcW6Agc0D3NoBUppYM Ld35JenlligCPnXShbaDv1mA31oxdgJ/uE5+XFvXJdshDHr1FFYSsGPgET2pk50SyRNB 4mv+eE/At572SynotyxvhuucOVjiuPqO+B/t6tNH9DLI0VS6+4f70L414rV62t8gL6m2 zQtLMqUexMoi5Fr1wBu+U3sVeGjYYGnaQ7alN0Tq57HlbYzPHtRR2FPCLx9MowG01Dv8 sY0w== 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:feedback-id:mime-version:message-id:date :to:from:delivered-to; bh=i/LfCa4rbaKhZ7v3KsJqH7RAkjJIR/LtIcbSnpN+T+c=; fh=w8JR1T/5WquwCqgnlKgniZcITMXOtCHDzF0NyyyGKZI=; b=ViKe7T+DP+woXfUJfySSeQ9cxs88ukANT3NsCAOMDXKKvz1LcCkrZQf3Ph6oAjn/3d MXGobSt7XBKubdDc/022NP7fOg3UxVAHbYm4GB10N6cPFM1vUeanJ/wn7H/3dOI8i3Ms KQaSTj7JiBIThgpSNzcyMTkdhXvpDxINIoMyHL/CmzFxLNe0SxRsNVl0IlvLpdFGF4xi PPDLZh0BmaSzg/kDZF3213qz7z1c4C7JzukPtx4cMQ00RhYYaWRhkU7qSLkoMZ7SOw1h 5BcOOKClkKa9X2oKrzCMyEWuCZ67NuWVVBFqFXyUxTJuxYF80lyNhKsPhmHM+6pwf2Yz DvtQ== ARC-Authentication-Results: i=1; mx.google.com; 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 fy4-20020a170906b7c400b009a1b857e3b7si3465638ejb.481.2023.10.08.04.58.17; Sun, 08 Oct 2023 04:58:17 -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; 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 58EA668CA05; Sun, 8 Oct 2023 14:58:13 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1464568C8E9 for ; Sun, 8 Oct 2023 14:58:04 +0300 (EEST) X-QQ-mid: bizesmtp70t1696766261tieefld2 Received: from localhost ( [103.102.203.205]) by bizesmtp.qq.com (ESMTP) with id ; Sun, 08 Oct 2023 19:57:40 +0800 (CST) X-QQ-SSF: 01100000000000Z0Z000000A0000000 X-QQ-FEAT: 5q30pvLz2ic9FdzKFlV20yO0GZ71zDxzPDJEcj/am1jQJTwVJgaJyJjzDBKcj +l5Yr6oixbE7JQ37h7/GL2fY6q+na39eHEf6bZttCiEEZwf8nIqeOev8PT6oSMfQJYN3uDl ujRQjGvIO3cnWgLv7F+4oBVPafV4ewr3M7/77E89bfdWwTcOHSA97JUrQfndN70SyP1WM67 HKv6WKU1fgHZOph5TEZ1BFtZL0+pC+Hgu+gSiIjuMdHmmhFNi1bcmPLUBzRM9uu1v4JGirw YJ6sTH7J8dRvXGLhqhBLEwbnA0ekiJwjQYANeGBramxNF+7/W49EgExIftKo0q65JyoQkmg VIN2NevdNEoeHklAKDjt7cfCcbbug== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 13205801142453121922 From: Steven Liu To: ffmpeg-devel@ffmpeg.org Date: Sun, 8 Oct 2023 19:57:37 +0800 Message-Id: <20231008115737.80200-1-lq@chinaffmpeg.org> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:chinaffmpeg.org:qybglogicsvrsz:qybglogicsvrsz3a-0 Subject: [FFmpeg-devel] [PATCH v1] avcodec/libaomdec: don't set aspect ratio when it's not yet known 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: Steven Liu Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 6j0c3XIolokZ Makes the output of the libaom av1 decoder consistent with external decoders like libdav1d. reference commit: 1652f2492f88434010053289d946dab6a57e4d58 Signed-off-by: Steven Liu --- libavcodec/libaomdec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavcodec/libaomdec.c b/libavcodec/libaomdec.c index 695d901051..ff4137bfc6 100644 --- a/libavcodec/libaomdec.c +++ b/libavcodec/libaomdec.c @@ -204,7 +204,6 @@ static int aom_decode(AVCodecContext *avctx, AVFrame *picture, picture->height * img->r_w, picture->width * img->r_h, INT_MAX); - ff_set_sar(avctx, picture->sample_aspect_ratio); if ((img->fmt & AOM_IMG_FMT_HIGHBITDEPTH) && img->bit_depth == 8) ff_aom_image_copy_16_to_8(picture, img);