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>
This commit is contained in:
Andreas Rheinhardt 2021-12-12 15:32:14 +01:00
parent 7a5f7caee9
commit 0a25abdacd
1 changed files with 1 additions and 0 deletions

View File

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