summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-12-12 15:32:14 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-12-16 03:06:52 +0100
commit0a25abdacd8a4dd4836cf1584ccab47204813ed2 (patch)
tree2b71f15702bcb676a952f78f3c5d260dc0da96e9 /libavformat
parent7a5f7caee9ebd58a025bd804e89f33de9f217b2a (diff)
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@outlook.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/moflex.c1
1 files changed, 1 insertions, 0 deletions
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,
};