avformat: Free the internal codec context at the end
authorLuca Barbato <lu_zero@gentoo.org>
Tue, 11 Apr 2017 23:46:30 +0000 (01:46 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 30 Dec 2017 20:11:31 +0000 (21:11 +0100)
commit912448efc110d4249e9ec7ff7b19bd7dab0c6e50
tree40c7e5543fa053612bd6c41afef7e84867fde22c
parent6fb7e324fee1b26f5c0ff41eab81c0a0ddd49fe5
avformat: Free the internal codec context at the end

Avoid a use after free in avformat_find_stream_info.

(cherry picked from commit 9e4a5eb51b9f3b2bff0ef08e0074b7fe4893075d)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/utils.c