Fix T38455: Blenderplayer is not working
[blender.git] / source / gameengine / VideoTexture / VideoFFmpeg.cpp
index 139988f64ea32ef26fb089dac9a41aa77431813a..3bad7c92efe4f184f53cd006d707fc1f8bab154d 100644 (file)
@@ -220,7 +220,7 @@ int VideoFFmpeg::openStream(const char *filename, AVInputFormat *inputFormat, AV
                codecCtx->frame_rate_base=1000;
        m_baseFrameRate = (double)codecCtx->frame_rate / (double)codecCtx->frame_rate_base;
 #else
-       m_baseFrameRate = av_q2d(formatCtx->streams[videoStream]->r_frame_rate);
+       m_baseFrameRate = av_q2d(av_get_r_frame_rate_compat(formatCtx->streams[videoStream]));
 #endif
        if (m_baseFrameRate <= 0.0) 
                m_baseFrameRate = defFrameRate;