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>
pull/377/head
Andreas Rheinhardt 3 years ago
parent 7a5f7caee9
commit 0a25abdacd
  1. 1
      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,
};

Loading…
Cancel
Save