Fixed another crash in cinametic code. Now it should be stable

This commit is contained in:
Robert Beckebans 2014-04-11 10:28:53 +02:00
parent 647a3ebad8
commit 1115b52dd2

View file

@ -653,11 +653,21 @@ void idCinematicLocal::Close()
if( !isRoQ )
{
if( img_convert_ctx )
{
sws_freeContext( img_convert_ctx );
}
img_convert_ctx = NULL;
if( dec_ctx )
{
avcodec_close( dec_ctx );
avformat_close_input( &fmt_ctx );
}
if( fmt_ctx )
{
avformat_close_input( &fmt_ctx );
}
status = FMV_EOF;
}
#endif