[FFmpeg-devel] [PATCH] avformat/vividas: Avoid allocation of AVIOContext

Michael Niedermayer michael at niedermayer.cc
Fri Nov 29 00:58:47 EET 2019


On Thu, Nov 28, 2019 at 03:31:33PM +0100, Andreas Rheinhardt wrote:
> Put an AVIOContext whose lifetime doesn't extend beyond the function where
> it is allocated on the stack instead of allocating and freeing it. This
> also avoids the need to free it, which in this case fixes possible
> memleaks on error.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> ---
>  libavformat/vividas.c | 19 ++++---------------
>  1 file changed, 4 insertions(+), 15 deletions(-)

will apply

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I have never wished to cater to the crowd; for what I know they do not
approve, and what they approve I do not know. -- Epicurus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20191128/b81f13ed/attachment.sig>


More information about the ffmpeg-devel mailing list