[FFmpeg-cvslog] avcodec/rawdec: Free bitstream_buf
Andreas Rheinhardt
git at videolan.org
Sat Apr 3 14:33:47 EEST 2021
ffmpeg | branch: release/4.4 | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sat Apr 3 11:54:12 2021 +0200| [8bc3cdf00722834ae73f48dd6a29af3cec71bf9b] | committer: Andreas Rheinhardt
avcodec/rawdec: Free bitstream_buf
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
(cherry picked from commit 5c0f6d53da154ef51933eb5820424612aedda50d)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8bc3cdf00722834ae73f48dd6a29af3cec71bf9b
---
libavcodec/rawdec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c
index c18c3dd3e1..aaafbd46eb 100644
--- a/libavcodec/rawdec.c
+++ b/libavcodec/rawdec.c
@@ -493,6 +493,7 @@ static av_cold int raw_close_decoder(AVCodecContext *avctx)
RawVideoContext *context = avctx->priv_data;
av_buffer_unref(&context->palette);
+ av_freep(&context->bitstream_buf);
return 0;
}
More information about the ffmpeg-cvslog
mailing list