[FFmpeg-devel] [PATCH] fftools/ffmpeg: Free swresample dictionary during cleanup

Michael Niedermayer michael at niedermayer.cc
Fri Oct 25 01:18:02 EEST 2019


On Thu, Oct 24, 2019 at 03:46:53PM +0200, Paul B Mahol wrote:
> LGTM

will apply

thx

> 
> On 10/24/19, Andreas Rheinhardt <andreas.rheinhardt at gmail.com> wrote:
> > Freeing this was forgotten in ad899522.
> >
> > Fixes #8315 and #8316.
> >
> > Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> > ---
> >  fftools/ffmpeg.c | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
> > index 8e408c808a..27f68933f8 100644
> > --- a/fftools/ffmpeg.c
> > +++ b/fftools/ffmpeg.c
> > @@ -567,6 +567,7 @@ static void ffmpeg_cleanup(int ret)
> >          ost->audio_channels_mapped = 0;
> >
> >          av_dict_free(&ost->sws_dict);
> > +        av_dict_free(&ost->swr_opts);
> >
> >          avcodec_free_context(&ost->enc_ctx);
> >          avcodec_parameters_free(&ost->ref_par);
> > --
> > 2.20.1
> >
> > _______________________________________________
> > ffmpeg-devel mailing list
> > ffmpeg-devel at ffmpeg.org
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Awnsering whenever a program halts or runs forever is
On a turing machine, in general impossible (turings halting problem).
On any real computer, always possible as a real computer has a finite number
of states N, and will either halt in less than N cycles or never halt.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20191025/f09aaddc/attachment.sig>


More information about the ffmpeg-devel mailing list