diff mbox series

[FFmpeg-devel,2/3] avformat/moflex: Free AVPackets via av_packet_free() on error

Message ID AM7PR03MB6660C6E71A58F556FA3DAE8C8F739@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit 0a25abdacd8a4dd4836cf1584ccab47204813ed2
Headers show
Series [FFmpeg-devel,1/3] avcodec/speedhq: Replace always-true check by assert | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Andreas Rheinhardt Dec. 12, 2021, 3:43 p.m. UTC
(This is not a leak as long as av_free() completely frees blank
packets.)

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavformat/moflex.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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,
 };