[FFmpeg-devel] [PATCH] avfilter/trim: flag trim filter as metadata only

Gyan Doshi ffmpeg at gyani.pro
Thu Jun 6 12:41:30 EEST 2024



On 2024-06-05 12:47 am, Stefano Sabatini wrote:
> On date Tuesday 2024-06-04 23:41:05 +0530, Gyan Doshi wrote:
>> Similar to select filter for video - it can only pass through or drop frames
>> ---
>>   libavfilter/trim.c | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/libavfilter/trim.c b/libavfilter/trim.c
>> index 4c1a2b4f48..4afc4c74bb 100644
>> --- a/libavfilter/trim.c
>> +++ b/libavfilter/trim.c
>> @@ -364,6 +364,7 @@ const AVFilter ff_vf_trim = {
>>       .activate    = activate,
>>       .priv_size   = sizeof(TrimContext),
>>       .priv_class  = &trim_class,
>> +    .flags       = AVFILTER_FLAG_METADATA_ONLY,
>>       FILTER_INPUTS(trim_inputs),
>>       FILTER_OUTPUTS(ff_video_default_filterpad),
>>   };
>> -- 
>> 2.44.0
> Should be good.

Thanks. Pushed as d55f5cba7b1fd362beb3b0322c5674016a85e859

Regards,
Gyan



More information about the ffmpeg-devel mailing list