From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 6C22C4E2E6 for ; Mon, 19 Jan 2026 06:47:48 +0000 (UTC) Authentication-Results: ffbox; dkim=fail (body hash mismatch (got b'EgyPPrgjDTTWaAzjJl1bWdwXJvkJG2QDm4DbW5ZtJMg=', expected b'nueg5RnDk+gDhE9GzClxE48XyOw4Cq3D6ZaPY892cvA=')) header.d=ffmpeg.org header.i=@ffmpeg.org header.a=rsa-sha256 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1768805255; h=mime-version : to : date : message-id : reply-to : subject : list-id : list-archive : list-archive : list-help : list-owner : list-post : list-subscribe : list-unsubscribe : from : cc : content-type : content-transfer-encoding : from; bh=EgyPPrgjDTTWaAzjJl1bWdwXJvkJG2QDm4DbW5ZtJMg=; b=2X5TUrsGtxeIkgOR89X1jKy+++6l8n9BMqC4eTq0ssPNyyOLsLhONudCM0UHMEhGOF776 Ijhfj71clblXTx4/FA0XtEwAnfLNDkk8YnYTqLWIYM5cLjCmcoPjT1KT8cq0FlSO7W2J4Bg vxxQUCupvDUFTB5Ub4NtAuRkMVj4e+Xlj1Wf1gw9cvAgCYjfLJmMLlxhdDHKgnXi2I79xsM SEuipXdwFFmeXMdkWNX6p2svoRJknyoxuaV+QULlQnDbWzFhWMsqob5d6gw5VwVktabL4ZC n8xh+xMGuH53qfdPz8ijPEVgpCqBhG/zC5RVbCLNBPByY4eNhOCbI0C+fz4w== Received: from [172.20.0.4] (unknown [172.20.0.4]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id E4C4B690E8F; Mon, 19 Jan 2026 08:47:35 +0200 (EET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=ffmpeg.org; s=arc; t=1768805235; b=XB+QuFhp9SmJPKoxnh1FgrPG2WTXMqUcvGhithMOYyCHpgPIyLq6J0KtWZnox5eFtLd5g BKjC2caBqlyD4fZxtbOCGrSU5+Fup8ahiaOzWT5BWJXB/HazJ72Tl9UYt4ZCBOWVNlsGhyo tNANQaRlzdb4NzEMtuvD9EJSZrNk4Dsgjk38VSxaKnRgL+CGRUPFtwzAgLamyEb8MFtq8Lp RljTjk0sU8vTD2bc87sKFV3195CAdV/gNQ2pc8uLwegrcMgUFU+Bywz1LLV9w/jBMc8hf5K q/Tj5MOcTZgliNaytivdDsB8N5Bot3nmcnGUpKFZsH15I6AkKWBhFEZNf1gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=ffmpeg.org; s=arc; t=1768805235; h=from : sender : reply-to : subject : date : message-id : to : cc : mime-version : content-type : content-transfer-encoding : content-id : content-description : resent-date : resent-from : resent-sender : resent-to : resent-cc : resent-message-id : in-reply-to : references : list-id : list-help : list-unsubscribe : list-subscribe : list-post : list-owner : list-archive; bh=e7/JG+7Gt2Dpofw0lKknFpo7kyrSG12etkUbxIkem8s=; b=enyCwY1ixE/Mnu0x1lYncZwnoi4WR73+Z4LXVtx+4UzUJl37agac4+O/AaXkzkOw3EF6f OGBCw3atFP6jMzJcenBw1lsomYwwcCMGdanIr+bgLA3iunpNqdJH1Hom+iVgqZDz5/DFPt1 aACn69p2x62ogFPZ5apTim7TbQe0pGMr3VYipnHrBDbAAnwMY18cVJ+UtEbPnIUHtveqHNb vMWzEdRJp3LJRG1kZWfy+4u0E/2/evBKjPTcQ2Ro2f9N8evfdQ81PKkV6NX0FaEb3QQeBR0 eipxDNbQG/bN2+dNxMvWgbFgoVvBovz+qQ3utplfJJXqG33CAzqWlcaaNC8Q== ARC-Authentication-Results: i=1; ffmpeg.org; dkim=pass header.d=ffmpeg.org header.i=@ffmpeg.org; arc=none; dmarc=pass header.from=ffmpeg.org policy.dmarc=quarantine Authentication-Results: ffmpeg.org; dkim=pass header.d=ffmpeg.org header.i=@ffmpeg.org; arc=none (Message is not ARC signed); dmarc=pass (Used From Domain Record) header.from=ffmpeg.org policy.dmarc=quarantine DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1768805224; h=content-type : mime-version : content-transfer-encoding : from : to : reply-to : subject : date : from; bh=nueg5RnDk+gDhE9GzClxE48XyOw4Cq3D6ZaPY892cvA=; b=HaeaVUn4bJJCt5gaE7ccEzcPbV0sMaq0GuqJsV7Nk6fKmL6mIJ4D0EpVzITTo50Id2++y 905zpVgijUhT1taXj0wK7GcdSOTnYTQpORduq+xOMAiKsH/qIn6AP1XPw0jwFIFFQwxKr/D gf39JD13Xt3nBOYz0idwT/bZsOPftc7+Dlg00n30Ng9mOo7gTnCuS8Y65O6nK3rT8u2wbUw VywY7HiE6jKiM+HZjx2G+GUoKW8Dl7ucIjPE9C4n4Da2tyx4s4HUSi1p+VmNQqPEuacLd3g HJE4ZaTmeXY0ZeHf5fxZ+04rEKfrMZi300IL+vlOa3w0c3d3ioykS4IZiHNQ== Received: from 69dab402ede7 (code.ffmpeg.org [188.245.149.3]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 2BC0B68F60A for ; Mon, 19 Jan 2026 08:47:04 +0200 (EET) MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Date: Mon, 19 Jan 2026 06:47:03 -0000 Message-ID: <176880522436.25.12264435118368493515@4457048688e7> Message-ID-Hash: TM3B5GJV5CTGYCRU2KDYQM4ODUUIK2NG X-Message-ID-Hash: TM3B5GJV5CTGYCRU2KDYQM4ODUUIK2NG X-MailFrom: code@ffmpeg.org X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-ffmpeg-devel.ffmpeg.org-0; header-match-ffmpeg-devel.ffmpeg.org-1; header-match-ffmpeg-devel.ffmpeg.org-2; header-match-ffmpeg-devel.ffmpeg.org-3; emergency; member-moderation X-Mailman-Version: 3.3.10 Precedence: list Reply-To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] [PR] fftools/ffmpeg_demux: Fix -readrate_initial_burst implementation where lag/catchup detection was kicking in, overriding the burst. (PR #21512) List-Id: FFmpeg development discussions and patches Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: ddurham2 via ffmpeg-devel Cc: ddurham2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Archived-At: List-Archive: List-Post: PR #21512 opened by ddurham2 URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21512 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21512.patch addresses issue #21510 >>From 5818330487fee2e36481dbda71b918c5e9928899 Mon Sep 17 00:00:00 2001 From: Davy Durham Date: Sun, 18 Jan 2026 00:32:21 -0600 Subject: [PATCH] fftools/ffmpeg_demux: Fix -readrate_initial_burst implementation where lag/catchup detection was kicking in, overriding the burst. --- fftools/ffmpeg_demux.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c index 193967fce1..1fc1554a60 100644 --- a/fftools/ffmpeg_demux.c +++ b/fftools/ffmpeg_demux.c @@ -100,7 +100,7 @@ typedef struct DemuxStream { int64_t resume_wc; // timestamp of first packet sent after the latest stall - used for readrate int64_t resume_pts; - // measure of how far behind packet reading is against spceified readrate + // measure of how far behind packet reading is against specified readrate int64_t lag; } DemuxStream; @@ -521,6 +521,10 @@ static void readrate_sleep(Demuxer *d) if (ds->discard) continue; + if (ds->lag == 0 && initial_burst > 0) { + ds->lag = initial_burst; + } + stream_ts_offset = FFMAX(ds->first_dts != AV_NOPTS_VALUE ? ds->first_dts : 0, file_start); pts = av_rescale(ds->dts, 1000000, AV_TIME_BASE); now = av_gettime_relative(); -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org