mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-06 04:05:11 +08:00
engine: avi: do not playback video if codec context is NULL
This commit is contained in:
@@ -355,6 +355,10 @@ qboolean AVI_Think( movie_state_t *Avi )
|
||||
qboolean decoded = false;
|
||||
qboolean flushing = false;
|
||||
qboolean redraw = false;
|
||||
|
||||
if( !Avi->video_ctx )
|
||||
return false;
|
||||
|
||||
const double timebase = (double)Avi->video_ctx->pkt_timebase.den / Avi->video_ctx->pkt_timebase.num;
|
||||
int64_t curtime = round( Platform_DoubleTime() * timebase );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user