[FFmpeg-cvslog] lavc/hevcdec: do not free SliceHeader arrays in pic_arrays_free()
Anton Khirnov
git at videolan.org
Tue Jun 11 18:50:21 EEST 2024
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sun Jun 2 20:23:07 2024 +0200| [04075567163290eb8b85d106b3e53bdc13d8515b] | committer: Anton Khirnov
lavc/hevcdec: do not free SliceHeader arrays in pic_arrays_free()
SliceHeader.{entry_point_offset,size,offset} are not derived from frame
size and do not need to be freed here.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=04075567163290eb8b85d106b3e53bdc13d8515b
---
libavcodec/hevc/hevcdec.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hevc/hevcdec.c
index 4e0df4d033..d317c1471a 100644
--- a/libavcodec/hevc/hevcdec.c
+++ b/libavcodec/hevc/hevcdec.c
@@ -84,10 +84,6 @@ static void pic_arrays_free(HEVCContext *s)
av_freep(&s->horizontal_bs);
av_freep(&s->vertical_bs);
- av_freep(&s->sh.entry_point_offset);
- av_freep(&s->sh.size);
- av_freep(&s->sh.offset);
-
ff_refstruct_pool_uninit(&s->tab_mvf_pool);
ff_refstruct_pool_uninit(&s->rpl_tab_pool);
}
More information about the ffmpeg-cvslog
mailing list