fix for ffmpeg linking in BGE (patch by Jens Verwiebe (jensverwiebe) over IRC)
authorDalai Felinto <dfelinto@gmail.com>
Fri, 27 May 2011 21:13:44 +0000 (21:13 +0000)
committerDalai Felinto <dfelinto@gmail.com>
Fri, 27 May 2011 21:13:44 +0000 (21:13 +0000)
- av_parse_video_rate(&frameRate, rateStr);
+ av_parse_video_frame_rate(&frameRate, rateStr);

source/gameengine/VideoTexture/VideoFFmpeg.cpp

index f8274756c8be0ff7c92e806923df04779dbae58a..532467abf77460dfaae3795dfab6b89b4edb8f5d 100644 (file)
@@ -641,7 +641,7 @@ void VideoFFmpeg::openCam (char * file, short camIdx)
        if (m_captRate <= 0.f)
                m_captRate = defFrameRate;
        sprintf(rateStr, "%f", m_captRate);
-       av_parse_video_rate(&frameRate, rateStr);
+       av_parse_video_frame_rate(&frameRate, rateStr);
        // populate format parameters
        // need to specify the time base = inverse of rate
        formatParams.time_base.num = frameRate.den;