Re: [FFmpeg-devel] [PATCH 01/10] avformat/mpjpegdec: Avoid allocation of AVIOContext

2019-10-06 Thread Michael Niedermayer
On Sun, Oct 06, 2019 at 07:01:11AM +0200, 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. > > Signed-off-by: Andreas Rheinhardt > --- > libavformat/mpjpegdec.c | 10 +++

[FFmpeg-devel] [PATCH 01/10] avformat/mpjpegdec: Avoid allocation of AVIOContext

2019-10-05 Thread Andreas Rheinhardt
Put an AVIOContext whose lifetime doesn't extend beyond the function where it is allocated on the stack instead of allocating and freeing it. Signed-off-by: Andreas Rheinhardt --- libavformat/mpjpegdec.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/libavformat/m