]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/rawdec: Free bitstream_buf
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Sat, 3 Apr 2021 09:54:12 +0000 (11:54 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Sat, 3 Apr 2021 09:54:12 +0000 (11:54 +0200)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
libavcodec/rawdec.c

index 1badb69180e38859bb9a6f835faa275f9c426f3a..d3756328baba6fe9010b6714507fea40aa5af318 100644 (file)
@@ -484,6 +484,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;
 }