Fix T38455: Blenderplayer is not working
[blender.git] / source / blender / imbuf / intern / indexer.c
index a3cb4048779186f2de131d1ef5a62ba2a22a4987..e45222706d7a52657d0ad271965745a0e49bc372 100644 (file)
@@ -910,7 +910,7 @@ static int index_rebuild_ffmpeg(FFmpegIndexBuilderContext *context,
 
        stream_size = avio_size(context->iFormatCtx->pb);
 
-       context->frame_rate = av_q2d(context->iStream->avg_frame_rate);
+       context->frame_rate = av_q2d(av_get_r_frame_rate_compat(context->iStream));
        context->pts_time_base = av_q2d(context->iStream->time_base);
 
        while (av_read_frame(context->iFormatCtx, &next_packet) >= 0) {