mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-15 07:00:58 +00:00
Merge pull request #186 from BielBdeLuna/ffmpeg_ubuntu_fix
ffmpeg fix so we can compile it without deprecated functions
This commit is contained in:
commit
cc41f1a1fe
1 changed files with 1 additions and 1 deletions
|
@ -551,7 +551,7 @@ bool idCinematicLocal::InitFromFFMPEGFile( const char* qpath, bool amilooping )
|
|||
int ticksPerFrame = dec_ctx->ticks_per_frame;
|
||||
float durationSec = static_cast<double>( fmt_ctx->streams[video_stream_index]->duration ) * static_cast<double>( ticksPerFrame ) / static_cast<double>( avr.den );
|
||||
animationLength = durationSec * 1000;
|
||||
frameRate = av_q2d( fmt_ctx->streams[video_stream_index]->r_frame_rate );
|
||||
frameRate = av_q2d( fmt_ctx->streams[video_stream_index]->avg_frame_rate );
|
||||
buf = NULL;
|
||||
hasFrame = false;
|
||||
framePos = -1;
|
||||
|
|
Loading…
Reference in a new issue