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 E591D4108C for ; Sun, 13 Feb 2022 17:07:44 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 90F2D68B1D9; Sun, 13 Feb 2022 19:07:41 +0200 (EET) Received: from mail-oo1-f53.google.com (mail-oo1-f53.google.com [209.85.161.53]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0821468AEAF for ; Sun, 13 Feb 2022 19:07:35 +0200 (EET) Received: by mail-oo1-f53.google.com with SMTP id i10-20020a4aab0a000000b002fccf890d5fso16740327oon.5 for ; Sun, 13 Feb 2022 09:07:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language :from:to:references:in-reply-to:content-transfer-encoding; bh=fZ1je6laAuQVfwabwvZnYjzE0o2m/ENyOB1Uf9+5UaY=; b=BRGWiBLgPO/LDqk7BPcbg9FS9ksC3ILAgdb2cWX9H7DtZu4sy2XlcOTwU/kjHChpl3 KWjErTBWMUl7eIHYuUbSJ2WSE3ZxWBpJTSJD6ZNvL6yTKiwvCMw4MjAGWXGZqHrjmF8d YUzD6GKVmzwL8gjZTqk+gqPlpc0qOFE0YdMDcjin7qsirrJoGfjGRKvG4/QgIUetuJjs 5QohgbpFkga929esiZbXqW0WAk4MPPHemp3BDxIZJYQkh3MJLryP8iT9wq1nIaOHsspg 8hPZ4AA/LN3gJIxFXchTd/Onhq0MTSHSGqRqOYIOJeloSs44bF5ZgxJhR3GsgvvrNGnE LMJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:from:to:references:in-reply-to :content-transfer-encoding; bh=fZ1je6laAuQVfwabwvZnYjzE0o2m/ENyOB1Uf9+5UaY=; b=JS/+pnxayRDMq9r+2/DRgHZ+pwmbkQ5dRz26uEpECID9XTJ89/3ccx4tVd6jCNo2ko a91AomLYw2JFWbKIVIx6GcSEg2iPrWJQLV0gGJIzQnn3rEXemEb+JdGlrQYY7bR5czb9 kVrPwi3aD7ePyJg8jg3gjukYFXZD4aOhBkpr61LP4n5NueOHJZzFFeAnyzeuYcWN5idL Vswz3k1oirTb2Zs4+wYz8vs4e0C2rTqIqmhACf1k/wgsRHx7U23+vAValDKdz+rQDNRY 5i0OTRjfS8fKzte7kCjHFRwcXZFbh3zIAw4OMM2KTOgZ8N8C1AiVhWC6NDZ2eMhc172B dY+g== X-Gm-Message-State: AOAM530lY24S7ySdq97pxjjJaqh+oXr3eziNH6sS1DSwsY31hojmBxBD tXkPgy1opkcHvGb11StaxmCOw2HstemO8g== X-Google-Smtp-Source: ABdhPJyqXI8AZ9nJqc7fbM/cPdK5E9UE0c5M2CLCrI4QUoZexP1d2IfZXn1QMzr0EAL81Gp+5OxQPg== X-Received: by 2002:a05:6870:4350:: with SMTP id x16mr3092283oah.218.1644772052579; Sun, 13 Feb 2022 09:07:32 -0800 (PST) Received: from [192.168.0.10] ([186.136.131.95]) by smtp.gmail.com with ESMTPSA id g10sm11446158otn.65.2022.02.13.09.07.31 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 13 Feb 2022 09:07:31 -0800 (PST) Message-ID: <5ae2e409-77bd-cd38-d10b-d65f2c4e8a84@gmail.com> Date: Sun, 13 Feb 2022 14:07:27 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Content-Language: en-US From: James Almer To: ffmpeg-devel@ffmpeg.org References: <20220209152858.2339-1-jamrial@gmail.com> In-Reply-To: <20220209152858.2339-1-jamrial@gmail.com> Subject: Re: [FFmpeg-devel] [PATCH] avcodec/setts_bsf: set the output packet duration to 0 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 2/9/2022 12:28 PM, James Almer wrote: > It's not possible to know the resulting packet's duration after > applying the expression as it depends on the timestamp of the next > packet, which we haven't seen yet. > The old duration, if any, is no longer valid, so just remove it. > > Signed-off-by: James Almer > --- > libavcodec/setts_bsf.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/libavcodec/setts_bsf.c b/libavcodec/setts_bsf.c > index d604f91f71..56307fc8cd 100644 > --- a/libavcodec/setts_bsf.c > +++ b/libavcodec/setts_bsf.c > @@ -180,6 +180,7 @@ static int setts_filter(AVBSFContext *ctx, AVPacket *pkt) > > pkt->pts = new_pts; > pkt->dts = new_dts; > + pkt->duration = 0; > > return ret; > } Will apply. _______________________________________________ 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".