avformat/mov: Fix memleak
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 16 Sep 2019 15:54:59 +0000 (17:54 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 17 Sep 2019 12:41:07 +0000 (14:41 +0200)
commit34bd293b014efc816bd7aab068d7f9e4a6d3011a
tree633851d98bf5e6cbe4de045e008a61ecc2cb4997
parentef50cf7b32b91af303e37236f22e2e89971a84b7
avformat/mov: Fix memleak

When the mov/mp4 demuxer encounters an error during decrypting a packet,
it returns the error, yet doesn't free the packet, so that the packet
leaks. This has been fixed in this commit.

Fixes the memleaks from ticket #8150.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mov.c