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 A356140EC5 for ; Wed, 9 Feb 2022 15:29:40 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id D721668B1C0; Wed, 9 Feb 2022 17:29:38 +0200 (EET) Received: from mail-oi1-f174.google.com (mail-oi1-f174.google.com [209.85.167.174]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 68C5568AF50 for ; Wed, 9 Feb 2022 17:29:32 +0200 (EET) Received: by mail-oi1-f174.google.com with SMTP id i5so2845511oih.1 for ; Wed, 09 Feb 2022 07:29:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=bJhN5JYEx+34plVa1A2m7zxkiCgdmOaPmWiDB3/uivI=; b=f2rfdNRnaPaiyII1mt2VDusXuYoxlszUtweZJTvBtXTxe5TQnqEZBjI6S6lcEyRCAc iK1RI242N86A6IOMJGjCprWBMwT5F+boDOoXEkHg2ICpkJAYa6UsBU17MNpAA+gapzVH yHBDAa6mAjb/SPL4UmhL1gqEu84dWs6StlKCyhxkcJbhIZ9JunuMGdVkkwtRhAe6X1w4 RKFD/6NEYfIX1xNx4PbevcDVivsQ47Ct0HtGSG4qh7/YE3t36WsXDX6nVkd0ksE0oT/T VSfmhU1PdfCdL2f/nmXX0eybnzzBf38fUXqfa9mjFsLFoiVkHkvCYMbU0qU5Omv9foHp 7B+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=bJhN5JYEx+34plVa1A2m7zxkiCgdmOaPmWiDB3/uivI=; b=RpDvG4SR0uK30jtX2RjHslR8cVVQ2NF9GfIpzTYcFccWPqEiAQnidhg01ou6jq0fhT bYMjHoAWgnRxZqONRBqRXJ1ijropol1dpps7SUTrMkr/KhW573L3LREfhDuRci3WDbvY vtvTcMiqGYLLbSZxJl78HmrJsgNdqHgJUXQTKQUDQlPTRHKegJets9DuVHbC54NNo5z0 a7nqoujUOIlBl/CfOtrWuxW6/vhHTYMAShfnKSHq47eA/ObEnkjPTnGv8lI/Oqlm8CbD +ylRzxyAaylxj2Gzm4PpxBO6Q41iOAszVG51FDBP+lKihNAYe8xqkpVMLghlYN7cSapC CR7w== X-Gm-Message-State: AOAM532gA/VH4cy+y65rAj9G/MLnDjOaCbmAVObgAPoxwEClYqee2LID EFxyU+/EtsBvlAZ5Penhw8fvrX2uSb8xpg== X-Google-Smtp-Source: ABdhPJxN94I5rPzuZV54eBszt61gcb44jUwy5Tn+/Em844h4+CGJ7rzjd4f3ZksxonLzNRlBfZfEoA== X-Received: by 2002:a05:6808:23c9:: with SMTP id bq9mr1180744oib.138.1644420569905; Wed, 09 Feb 2022 07:29:29 -0800 (PST) Received: from localhost.localdomain ([186.136.131.95]) by smtp.gmail.com with ESMTPSA id j6sm6613706otq.76.2022.02.09.07.29.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 07:29:29 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Wed, 9 Feb 2022 12:28:58 -0300 Message-Id: <20220209152858.2339-1-jamrial@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Subject: [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-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: 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; } -- 2.35.1 _______________________________________________ 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".