avformat/utils: fix memory leak in avformat_free_context
authorSteven Siloti <ssiloti@bittorrent.com>
Tue, 18 Jul 2017 18:26:39 +0000 (11:26 -0700)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 5 Aug 2017 21:25:05 +0000 (23:25 +0200)
commita371850d58e0b988fd4c10faec20bc649ad02b9c
tree0d95d1862c652ac2a7c57051dc36a51e641313e8
parent693db350dd0be9cea5a5a164f25f8f74405f2e65
avformat/utils: fix memory leak in avformat_free_context

The pointer to the packet queue is stored in the internal structure
so the queue needs to be flushed before internal is freed.

Signed-off-by: Steven Siloti <ssiloti@bittorrent.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 949debd1d1df3a96315b3a3083831162845c1188)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/utils.c