From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <ffmpeg-devel-bounces@ffmpeg.org>
Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100])
	by master.gitmailbox.com (Postfix) with ESMTPS id E28544CFE4
	for <ffmpegdev@gitmailbox.com>; Sun, 16 Mar 2025 18:10:07 +0000 (UTC)
Received: from [127.0.1.1] (localhost [127.0.0.1])
	by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0C12768DC31;
	Sun, 16 Mar 2025 20:10:03 +0200 (EET)
Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [80.241.56.151])
 by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A3CC7687C5B
 for <ffmpeg-devel@ffmpeg.org>; Sun, 16 Mar 2025 20:09:56 +0200 (EET)
Received: from smtp2.mailbox.org (smtp2.mailbox.org
 [IPv6:2001:67c:2050:b231:465::2])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4ZG5jY5Btwz9sGT
 for <ffmpeg-devel@ffmpeg.org>; Sun, 16 Mar 2025 19:09:53 +0100 (CET)
Message-ID: <1ec268e9-4b2f-4d4a-97d8-fd7fa164612b@gyani.pro>
Date: Sun, 16 Mar 2025 23:39:49 +0530
MIME-Version: 1.0
To: ffmpeg-devel@ffmpeg.org
References: <20250316072004.988-1-ffmpeg@gyani.pro>
 <b6b91339-c6b5-467e-8466-baed59553f84@gmail.com>
Content-Language: en-US
From: Gyan Doshi <ffmpeg@gyani.pro>
In-Reply-To: <b6b91339-c6b5-467e-8466-baed59553f84@gmail.com>
X-Rspamd-Queue-Id: 4ZG5jY5Btwz9sGT
Subject: Re: [FFmpeg-devel] [PATCH v2] ffmpeg: add per-stream input option
 drop_changed
X-BeenThere: ffmpeg-devel@ffmpeg.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org>
List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>,
 <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe>
List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel>
List-Post: <mailto:ffmpeg-devel@ffmpeg.org>
List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help>
List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>,
 <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe>
Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: ffmpeg-devel-bounces@ffmpeg.org
Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org>
Archived-At: <https://master.gitmailbox.com/ffmpegdev/1ec268e9-4b2f-4d4a-97d8-fd7fa164612b@gyani.pro/>
List-Archive: <https://master.gitmailbox.com/ffmpegdev/>
List-Post: <mailto:ffmpegdev@gitmailbox.com>



On 2025-03-16 11:12 pm, James Almer wrote:
> On 3/16/2025 4:18 AM, Gyan Doshi wrote:
>> This is a replacement in ffmpeg for the deprecated avcodec flag 
>> AV_CODEC_FLAG_DROPCHANGED.
>>
>> This option is meant to be used when the filtergraph should not be
>> reinited upon input parameter changes as that leads to loss of state
>> in the filtergraph potentially leading to broken or aborted output,
>> e.g. inserting of silence with first_pts specified in aresample.
>>
>> Generally useful to avoid corrupted yet decodable packets in live
>> streaming inputs.
>>
>> This option when enabled takes precedence over reinit_filters
>
> How does this differ from simply setting reinit_filter to false, if 
> what you want is the filtergraph to not be reinitialized?

av_buffersrc_add_frame_flags will return an error for all audio frames 
with differing parameters, as no filters are yet capable of handling 
them. ultimately leading to program exit.
Same is true for video frames barring a handful of filters like scale or 
idet ..etc

Regards,
Gyan

_______________________________________________
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".