]> git.sesse.net Git - ffmpeg/commit
avformat/mpjpegdec: Avoid allocation of AVIOContext
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 6 Oct 2019 05:01:11 +0000 (07:01 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 6 Oct 2019 18:00:59 +0000 (20:00 +0200)
commit670fd3b0ec8f81f7cb69932715562ddcd55096ec
tree327d97699b4d0da4c98140e4ef38a220a2c70bfe
parent5f758c31f9af6550a657ec2785c8c34838924e76
avformat/mpjpegdec: Avoid allocation of AVIOContext

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 <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mpjpegdec.c