lavc/vorbisdec: Allow avcodec_open2 to call .close
authorMatt Wolenetz <wolenetz@chromium.org>
Mon, 5 Mar 2018 23:59:18 +0000 (15:59 -0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 7 Mar 2018 19:37:33 +0000 (20:37 +0100)
commitb59b59944693e645cdcf5e61b60f288820fe48c3
treeac3ca9237566db7886f9876f45b7e292731d1d27
parent23c91abe4f6a76d0a5066adf2abbf8cd66f1b1ec
lavc/vorbisdec: Allow avcodec_open2 to call .close

If there is a decoder initialization failure detected in avcodec_open2
after .init is called, allow graceful decoder .close to prevent leaking
vorbis decoder allocations such as those from vorbis_parse_setup_*.

BUG=772699

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/vorbisdec.c