mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-03 21:19:40 +00:00
Add missing avcodec_close (Fixes #3741)
This commit is contained in:
parent
91939c4687
commit
5a939418fc
1 changed files with 4 additions and 0 deletions
|
@ -242,6 +242,10 @@ void FFmpeg_Decoder::open(const std::string &fname)
|
||||||
}
|
}
|
||||||
catch(std::exception&)
|
catch(std::exception&)
|
||||||
{
|
{
|
||||||
|
if(mStream)
|
||||||
|
avcodec_close((*mStream)->codec);
|
||||||
|
mStream = NULL;
|
||||||
|
|
||||||
if (mFormatCtx->pb->buffer != NULL)
|
if (mFormatCtx->pb->buffer != NULL)
|
||||||
{
|
{
|
||||||
av_free(mFormatCtx->pb->buffer);
|
av_free(mFormatCtx->pb->buffer);
|
||||||
|
|
Loading…
Reference in a new issue