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:24:02 +0000 (23:24 +0200)
commit949debd1d1df3a96315b3a3083831162845c1188
tree744a6fd0b09970e791de9033f91777f9e2288b99
parent013ec23cbe5d78a04b1b6c00c43f45773e45e7e5
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>
libavformat/utils.c