Fixed problem spottet by Ken Hughes, that prevented FFMPEG-output with

NTSC target from working (floating point exception).
Fixes bug #3879 from the bug tracker.
This commit is contained in:
2006-02-06 19:27:24 +00:00
parent 605a645e2c
commit b5cbd1c4e6

View 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;