lavc/libopusdec: Allow avcodec_open2 to call .close
authorMatt Wolenetz <wolenetz@google.com>
Tue, 10 Apr 2018 20:59:25 +0000 (13:59 -0700)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 11 Apr 2018 00:42:41 +0000 (02:42 +0200)
commite43e97f0e0f0596b56ceb2f887fe7414f202f081
tree8c8a92630cdd80373bde4a6086f8f34839f33fa2
parentaea610b0d6497886860a894eb76a6cc7788c0fcd
lavc/libopusdec: 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
libopus decoder allocations.

BUG=828526

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