Fix T52811: At any framerate selected, video exported with 1000fps
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 19 Sep 2017 06:30:37 +0000 (11:30 +0500)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 19 Sep 2017 06:31:03 +0000 (11:31 +0500)
source/blender/blenkernel/intern/writeffmpeg.c

index 156b74f..a19e414 100644 (file)
@@ -681,6 +681,7 @@ static AVStream *alloc_video_stream(FFMpegContext *context, RenderData *rd, int
        /* xasp & yasp got float lately... */
 
        st->sample_aspect_ratio = c->sample_aspect_ratio = av_d2q(((double) rd->xasp / (double) rd->yasp), 255);
+       st->avg_frame_rate = av_inv_q(c->time_base);
 
        set_ffmpeg_properties(rd, c, "video", &opts);