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 C208643F33 for ; Tue, 18 Oct 2022 22:38:22 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C414F68BA38; Wed, 19 Oct 2022 01:38:18 +0300 (EEST) Received: from mail-oo1-f46.google.com (mail-oo1-f46.google.com [209.85.161.46]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 5A7F068BA38 for ; Wed, 19 Oct 2022 01:38:12 +0300 (EEST) Received: by mail-oo1-f46.google.com with SMTP id g15-20020a4a894f000000b0047f8e899623so3281040ooi.5 for ; Tue, 18 Oct 2022 15:38:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:references:to:from :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=5jpNMlKmBTE7MkI79GIJKZ/CgPuh64lKEpxdym/ktVQ=; b=BNnxY4e7ZVJSLvc661VLMpR+5Ku7pYLggs5kCeM1l1FubX+tqGgpNr7oLt+qcoIVCa n7cNJncp3NFrPg1srVfpItUQFvpqxQhX+HEgduJ6z32nrX1Gsh86YciXMQcsOJVTudDU jbRjvi3ooNb2S7MQGyXwI7OjBXyjGly7Cwr1VBncQ2Rv+kPvknayXxH58Kpkp5LqxAbM 3grL+OGwnZG/dU23tGQfmctjG+iY2FT4FmL8Breis3BUP1pJnFV6Czj3SdKVEz8g7IQg MrKQ56g8EVgG6tUmyxYDq2hYhjbTeMYskGiEJiU6PHJd53mW4EnAmzKMmYvxgzCglvLb 5goA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:references:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5jpNMlKmBTE7MkI79GIJKZ/CgPuh64lKEpxdym/ktVQ=; b=qHK97FWCxyfdK975jxbkNN4MOe4pW8ABpO+oYrAahstCBjuZMMTOkyWJ7CZucWtog4 peSznYQP1S7mJJZJ0EnawvsyAU0Kfy9TA/P3I7JNq7n0rcpUrg+y5E+Kkx+x9N/B6zmK LQrfqaO7hJZLDVV8hmBu9vqPl0nWKAf+91DfUBiteC/ExBQDpFdt85a+RaxEWWgtiw9j QBhC8zDq571B178KJEu/H728LYjmRq4ld1O0znu74MBa+x7W8XicOU4iP0v6+iNkJf2M HJrNbDFGMt1ELk7FM6K+c8Xf8t2kxa2rimhFhfzzHw9EHxNXT1FLvblvOhz7Z7gfGL+t DahQ== X-Gm-Message-State: ACrzQf22DUkTZEhjTfkuYlRXCC5E6cl9LN3RQeWXAk2xwjMRCRkCj2wI rFZRuqhQDA7OQlsk6ruj1bBYtu/lcJI= X-Google-Smtp-Source: AMsMyM5FoFcJpaaxUnNJP4g3ZlzI2xQ/YVCUwYpGzZCHDMEW5e5ZlW3AG7plrRLxwTWos7X2x+nyWg== X-Received: by 2002:a4a:2243:0:b0:44a:e5cf:81e5 with SMTP id z3-20020a4a2243000000b0044ae5cf81e5mr2228453ooe.44.1666132690582; Tue, 18 Oct 2022 15:38:10 -0700 (PDT) Received: from [192.168.0.13] ([191.97.187.183]) by smtp.gmail.com with ESMTPSA id p35-20020a4a95e6000000b00475f26931c8sm5810675ooi.13.2022.10.18.15.38.09 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 Oct 2022 15:38:09 -0700 (PDT) Message-ID: <46ddeed4-8c3a-5eaf-9c26-2ffb9158d416@gmail.com> Date: Tue, 18 Oct 2022 19:38:15 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Content-Language: en-US From: James Almer To: ffmpeg-devel@ffmpeg.org References: <20221012130829.2392-1-jamrial@gmail.com> In-Reply-To: <20221012130829.2392-1-jamrial@gmail.com> Subject: Re: [FFmpeg-devel] [PATCH 1/4 v2] avcodec/librav1e: support setting sample aspect ratio 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On 10/12/2022 10:08 AM, James Almer wrote: > Signed-off-by: James Almer > --- > Changes since v1: > - Ensure we're not passing values like 0/1 as they are not supported by > librav1e. > > libavcodec/librav1e.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/libavcodec/librav1e.c b/libavcodec/librav1e.c > index 0601efed2c..a13d6c9eaf 100644 > --- a/libavcodec/librav1e.c > +++ b/libavcodec/librav1e.c > @@ -298,6 +298,12 @@ static av_cold int librav1e_encode_init(AVCodecContext *avctx) > goto end; > } > > + if (avctx->sample_aspect_ratio.num > 0 && avctx->sample_aspect_ratio.den > 0) > + rav1e_config_set_sample_aspect_ratio(cfg, (RaRational) { > + avctx->sample_aspect_ratio.num, > + avctx->sample_aspect_ratio.den > + }); > + > rret = rav1e_config_parse_int(cfg, "threads", avctx->thread_count); > if (rret < 0) > av_log(avctx, AV_LOG_WARNING, "Invalid number of threads, defaulting to auto.\n"); Will apply set. _______________________________________________ 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".