Skip to content

Commit

Permalink
engine: avi: possible crash in AVI_OpenVideo
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Dec 8, 2024
1 parent 48e3406 commit 4a66791
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions engine/client/avi/avi_ffmpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,9 @@ void AVI_OpenVideo( movie_state_t *Avi, const char *filename, qboolean load_audi
if( Avi->active )
AVI_CloseVideo( Avi );

if( !filename || !avi_initialized )
return;

Avi->active = false;
Avi->quiet = quiet;
Avi->video_ctx = Avi->audio_ctx = NULL;
Expand Down

0 comments on commit 4a66791

Please sign in to comment.