From: Michael Niedermayer via ffmpeg-devel <ffmpeg-devel@ffmpeg.org>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Cc: Michael Niedermayer <michael@niedermayer.cc>
Subject: [FFmpeg-devel] Re: [FFmpeg-cvslog] [ffmpeg] branch master updated. fd1fd5850d fftools/ffmpeg_sched: unchoke upstream nodes on recv-closed filter inputs
Date: Sun, 1 Feb 2026 02:11:19 +0100
Message-ID: <aX6oN513N4-ntq2T@neo> (raw)
In-Reply-To: <f916853c-dc69-4a00-8208-f159073c4a8b@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1316 bytes --]
Hi
On Fri, Jan 30, 2026 at 01:10:46PM -0300, James Almer via ffmpeg-devel wrote:
> 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) {
tested, works
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
I am the wisest man alive, for I know one thing, and that is that I know
nothing. -- Socrates
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 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
prev parent reply other threads:[~2026-02-01 1:12 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
2026-02-01 1:11 ` Michael Niedermayer via ffmpeg-devel [this message]
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=aX6oN513N4-ntq2T@neo \
--to=ffmpeg-devel@ffmpeg.org \
--cc=michael@niedermayer.cc \
/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