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 792CE4115F for ; Mon, 14 Feb 2022 22:42:51 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E408F68B181; Tue, 15 Feb 2022 00:42:22 +0200 (EET) Received: from mail-oi1-f170.google.com (mail-oi1-f170.google.com [209.85.167.170]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 00E8768B15A for ; Tue, 15 Feb 2022 00:42:19 +0200 (EET) Received: by mail-oi1-f170.google.com with SMTP id q8so19019286oiw.7 for ; Mon, 14 Feb 2022 14:42:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=KtBySlUweaMgDI0UKXWp1sHu+k9KOIE8XF2icKtaRlM=; b=Ehu5InV3rN/j3hAJEIQ1mC6XZCCjZnLJ74WOGMW00EvhczFPl1drAPxNGq8JOs2XTW e5aaxKZ4H66lABH6wsGEQMzdksxRltfW7JRiC68rAiujqpdkv5AYGiy2jcYYA74T7XLd +rJa2lTcEqkArwYgjarI5chJJL+gLrVdwQL/l2I2Zmqn9zTWEmmHn3f7W2ctk/Uo85RR zwU8Pms9HdF3BphO4tagSH1Bp32rIE61Y1zHNylEItp6gRz+mrGzVL68AE9eUY2JXrcm /cTGdhdpziQvkjXn/4bXa4THuFngqQ8H2RMt/ZM8vWnES7x30tN7sq8dGpz4jV2VeI3d u1rQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=KtBySlUweaMgDI0UKXWp1sHu+k9KOIE8XF2icKtaRlM=; b=Xmif6uDQLN5itx3HV3DhRHQUwuntpOT8EEsPlAOwcxg6Hu7sqMFUCf5Fk87zaO6XSS pND1PoT93WvM+B/ZxdAIr7Tk9v/SzISuv5w8jb6Yh4VSCioQsQYDofAMLSP6DfXs2vM7 WlHKw1t76BSwY9kkZ2bzYVpv9RLU6nP1ws4//XQt17Z6/NQina1hZmA87To0nUir5BXI zXroaZfUS2VwuTDbCLgLLaqDh6kMhQ3vVpZ6iwXPtAx5tAqupdxKl1fvsXTZ15RZD28c zgPJqoOWXX8D0EfsKX32zUGxUfbh7tssI/07NGMts6wQiyA/DAWF7oboGVlp87GRif1+ 59sQ== X-Gm-Message-State: AOAM531n0uZjlDXwY7ydrWudfrafzgVlir1YxqAhyJOwFGEV2hPR+8FV roWPXKNAEPJRr6bnXoeNruNat2f4g8/gXQ== X-Google-Smtp-Source: ABdhPJxaVvXkO/TqFJ/gMrIKM8zI8F6Ha8vbsH4CnXJF4v5f8LVM6IzXn1wk38d/40GPFor7ezUMgg== X-Received: by 2002:a05:6808:23c9:: with SMTP id bq9mr502082oib.138.1644878538437; Mon, 14 Feb 2022 14:42:18 -0800 (PST) Received: from localhost.localdomain ([186.136.131.95]) by smtp.gmail.com with ESMTPSA id a8sm13199885otj.47.2022.02.14.14.42.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 14:42:18 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Mon, 14 Feb 2022 19:41:54 -0300 Message-Id: <20220214224156.39862-4-jamrial@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220214224156.39862-1-jamrial@gmail.com> References: <20220214224156.39862-1-jamrial@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 4/6] ffmpeg: don't skip packets before a keyframe was seen if a bsf with delay is used 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: A keyframe could be buffered in the bsf and not be output until more packets had been fed to it. Signed-off-by: James Almer --- fftools/ffmpeg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 6aa0986f02..48d9016b4c 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -2026,7 +2026,8 @@ static void do_streamcopy(InputStream *ist, OutputStream *ost, const AVPacket *p } if ((!ost->frame_number && !(pkt->flags & AV_PKT_FLAG_KEY)) && - !ost->copy_initial_nonkeyframes) + !ost->copy_initial_nonkeyframes && + !(ost->bsf_ctx && ost->bsf_ctx->filter->capabilities & AV_BSF_CAP_DELAY)) return; if (!ost->frame_number && !ost->copy_prior_start) { -- 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".