From df69087fd61b174aef73389f4d8147b15c765e4d Mon Sep 17 00:00:00 2001 From: BielBdeLuna <7318.tk@gmail.com> Date: Fri, 24 Oct 2014 10:44:26 +0200 Subject: [PATCH] ffmpeg fix so we can compile it without deprecated functions --- neo/renderer/Cinematic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo/renderer/Cinematic.cpp b/neo/renderer/Cinematic.cpp index 6458d889..71f618a4 100644 --- a/neo/renderer/Cinematic.cpp +++ b/neo/renderer/Cinematic.cpp @@ -551,7 +551,7 @@ bool idCinematicLocal::InitFromFFMPEGFile( const char* qpath, bool amilooping ) int ticksPerFrame = dec_ctx->ticks_per_frame; float durationSec = static_cast( fmt_ctx->streams[video_stream_index]->duration ) * static_cast( ticksPerFrame ) / static_cast( 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;