[FFmpeg-cvslog] avformat/moflex: Free AVPackets via av_packet_free() on error
Andreas Rheinhardt
git at videolan.org
Thu Dec 16 04:21:02 EET 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sun Dec 12 15:32:14 2021 +0100| [0a25abdacd8a4dd4836cf1584ccab47204813ed2] | committer: Andreas Rheinhardt
avformat/moflex: Free AVPackets via av_packet_free() on error
(This is not a leak as long as av_free() completely frees blank
packets.)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0a25abdacd8a4dd4836cf1584ccab47204813ed2
---
libavformat/moflex.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/moflex.c b/libavformat/moflex.c
index 234b0fb06e..67adebe5e0 100644
--- a/libavformat/moflex.c
+++ b/libavformat/moflex.c
@@ -383,4 +383,5 @@ const AVInputFormat ff_moflex_demuxer = {
.read_close = moflex_read_close,
.extensions = "moflex",
.flags = AVFMT_GENERIC_INDEX,
+ .flags_internal = FF_FMT_INIT_CLEANUP,
};
More information about the ffmpeg-cvslog
mailing list