Fixed problem spottet by Ken Hughes, that prevented FFMPEG-output with
authorPeter Schlaile <peter@schlaile.de>
Mon, 6 Feb 2006 19:27:24 +0000 (19:27 +0000)
committerPeter Schlaile <peter@schlaile.de>
Mon, 6 Feb 2006 19:27:24 +0000 (19:27 +0000)
NTSC target from working (floating point exception).
Fixes bug #3879 from the bug tracker.

source/blender/blenkernel/intern/writeffmpeg.c

index 317f9fda7ca020e526dca376b9d6015c047bebd1..b5e318f7279975eabcc6db99ac1fc3af483c0b00 100644 (file)
@@ -350,7 +350,8 @@ static AVStream* alloc_video_stream(int codec_id, AVFormatContext* of,
 
        /* FIXME: Really bad hack (tm) for NTSC support */
        if (ffmpeg_type == FFMPEG_DV && G.scene->r.frs_sec != 25) {
-               c->time_base = av_d2q(29.97, 0);
+               c->time_base.den = 2997;
+               c->time_base.num = 100;
        } else {
                c->time_base.den = G.scene->r.frs_sec;
                c->time_base.num = 1;