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)
commitf0f45d84045307eeca5d0ec950ddcea702c68997
tree489a259a180e581db193f6e3fc45b1ac6c275f1f
parent9d0eb81cb85cb061955153f0698fc12f0d89cafc
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