ffmpeg fix so we can compile it without deprecated functions

This commit is contained in:
BielBdeLuna 2014-10-24 10:44:26 +02:00
parent 46eaf5b259
commit df69087fd6

View file

@ -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;