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>
Sun, 17 Sep 2017 13:57:27 +0000 (15:57 +0200)
commitee17fdffd4cb55eb8533ec2684ce5d7c8cf1fb22
tree0c21e2fccdb5036155ab26dcd942f207aa31779c
parenteadb52d4590433896bbde2395e2ca796caebf08c
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