Add missing avcodec_close (Fixes #3741)

coverity_scan^2
scrawl 8 years ago
parent 91939c4687
commit 5a939418fc

@ -242,6 +242,10 @@ void FFmpeg_Decoder::open(const std::string &fname)
}
catch(std::exception&)
{
if(mStream)
avcodec_close((*mStream)->codec);
mStream = NULL;
if (mFormatCtx->pb->buffer != NULL)
{
av_free(mFormatCtx->pb->buffer);

Loading…
Cancel
Save