ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinha...@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.rheinha...@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,
 };

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to