Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: James Almer via ffmpeg-devel <ffmpeg-devel@ffmpeg.org>
To: ffmpeg-devel@ffmpeg.org
Cc: James Almer <jamrial@gmail.com>
Subject: [FFmpeg-devel] Re: [FFmpeg-cvslog] [ffmpeg] branch master updated. fd1fd5850d fftools/ffmpeg_sched: unchoke upstream nodes on recv-closed filter inputs
Date: Fri, 30 Jan 2026 13:10:46 -0300
Message-ID: <f916853c-dc69-4a00-8208-f159073c4a8b@gmail.com> (raw)
In-Reply-To: <fad60896-6712-4587-97db-119b7f0d5368@gmail.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 1901 bytes --]

Now compiling and not leaking:

> diff --git a/fftools/ffmpeg_dec.c b/fftools/ffmpeg_dec.c
> index 5020684a28..8ca5189202 100644
> --- a/fftools/ffmpeg_dec.c
> +++ b/fftools/ffmpeg_dec.c
> @@ -141,6 +141,8 @@ void dec_free(Decoder **pdec)
>      av_freep(&dp->views_requested);
>      av_freep(&dp->view_map);
>  
> +    av_freep(&dec->subtitle_header);
> +
>      av_freep(pdec);
>  }
>  
> @@ -1621,7 +1623,11 @@ static int dec_open(DecoderPriv *dp, AVDictionary **dec_opts,
>              dp->dec_ctx->extra_hw_frames = extra_frames;
>      }
>  
> -    dp->dec.subtitle_header      = dp->dec_ctx->subtitle_header;
> +    if (dp->dec_ctx->subtitle_header) {
> +        dp->dec.subtitle_header = av_memdup(dp->dec_ctx->subtitle_header, dp->dec_ctx->subtitle_header_size);
> +        if (!dp->dec.subtitle_header)
> +            return AVERROR(ENOMEM);
> +    }
>      dp->dec.subtitle_header_size = dp->dec_ctx->subtitle_header_size;
>  
>      if (param_out) {

On 1/30/2026 1:05 PM, James Almer wrote:
> Does this fix it?
> 
>> diff --git a/fftools/ffmpeg_dec.c b/fftools/ffmpeg_dec.c
>> index 5020684a28..5dca26fbb2 100644
>> --- a/fftools/ffmpeg_dec.c
>> +++ b/fftools/ffmpeg_dec.c
>> @@ -1621,7 +1621,11 @@ static int dec_open(DecoderPriv *dp, 
>> AVDictionary **dec_opts,
>>              dp->dec_ctx->extra_hw_frames = extra_frames;
>>      }
>>
>> -    dp->dec.subtitle_header      = dp->dec_ctx->subtitle_header;
>> +    if (dp->dec_ctx->subtitle_header) {
>> +        dp->dec.subtitle_header) = av_memdup(dp->dec_ctx- 
>> >subtitle_header, dp->dec_ctx->subtitle_header_size);
>> +        if (!dp->dec.subtitle_header)
>> +            return AVERROR(ENOMEM);
>> +    }
>>      dp->dec.subtitle_header_size = dp->dec_ctx->subtitle_header_size;
>>
>>      if (param_out) {
> 


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]

[-- Attachment #2: Type: text/plain, Size: 163 bytes --]

_______________________________________________
ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org

  reply	other threads:[~2026-01-30 16:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20250930112036.4AD8768EDAD@ffbox0-bg.ffmpeg.org>
2026-01-30 15:45 ` Michael Niedermayer via ffmpeg-devel
2026-01-30 16:02   ` Michael Niedermayer via ffmpeg-devel
2026-01-30 16:05     ` James Almer via ffmpeg-devel
2026-01-30 16:10       ` James Almer via ffmpeg-devel [this message]
2026-02-01  1:11         ` Michael Niedermayer via ffmpeg-devel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f916853c-dc69-4a00-8208-f159073c4a8b@gmail.com \
    --to=ffmpeg-devel@ffmpeg.org \
    --cc=jamrial@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git