mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2024-12-11 13:11:47 +00:00
Fixed another crash in cinametic code. Now it should be stable
This commit is contained in:
parent
647a3ebad8
commit
1115b52dd2
1 changed files with 11 additions and 1 deletions
|
@ -653,11 +653,21 @@ void idCinematicLocal::Close()
|
||||||
if( !isRoQ )
|
if( !isRoQ )
|
||||||
{
|
{
|
||||||
if( img_convert_ctx )
|
if( img_convert_ctx )
|
||||||
|
{
|
||||||
sws_freeContext( img_convert_ctx );
|
sws_freeContext( img_convert_ctx );
|
||||||
|
}
|
||||||
|
|
||||||
img_convert_ctx = NULL;
|
img_convert_ctx = NULL;
|
||||||
|
|
||||||
if( dec_ctx )
|
if( dec_ctx )
|
||||||
|
{
|
||||||
avcodec_close( dec_ctx );
|
avcodec_close( dec_ctx );
|
||||||
avformat_close_input( &fmt_ctx );
|
}
|
||||||
|
|
||||||
|
if( fmt_ctx )
|
||||||
|
{
|
||||||
|
avformat_close_input( &fmt_ctx );
|
||||||
|
}
|
||||||
status = FMV_EOF;
|
status = FMV_EOF;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue