Re: [FFmpeg-devel] [PATCH]lavc/opusdec: Fix a memleak when reading invalid files

2015-11-25 Thread Carl Eugen Hoyos
On Friday 20 November 2015 02:59:34 am James Almer wrote: > On 11/19/2015 10:05 PM, Carl Eugen Hoyos wrote: > > Hi! > > > > Attached patch fixes a memleak with the sample from bug 909. > > /* find out the channel configuration */ > > ret = ff_opus_parse_extradata(avctx, c); > > -if

[FFmpeg-devel] [PATCH]lavc/opusdec: Fix a memleak when reading invalid files

2015-11-19 Thread Carl Eugen Hoyos
Hi! Attached patch fixes a memleak with the sample from bug 909. Please comment, Carl Eugen diff --git a/libavcodec/opusdec.c b/libavcodec/opusdec.c index 31871e9..6102591 100644 --- a/libavcodec/opusdec.c +++ b/libavcodec/opusdec.c @@ -671,8 +671,10 @@ static av_cold int

Re: [FFmpeg-devel] [PATCH]lavc/opusdec: Fix a memleak when reading invalid files

2015-11-19 Thread James Almer
On 11/19/2015 10:05 PM, Carl Eugen Hoyos wrote: > Hi! > > Attached patch fixes a memleak with the sample from bug 909. > > Please comment, Carl Eugen > > > patchopus.diff > > > diff --git a/libavcodec/opusdec.c b/libavcodec/opusdec.c > index 31871e9..6102591 100644 > ---