Fix FFMPEG for Windows

This commit is contained in:
Gerhard Kitzler 2017-06-30 09:31:18 +02:00
parent f2f3e92125
commit fe21f0aff1

View File

@ -164,7 +164,10 @@ class Mpeg {
enc->bit_rate = BITRATE;
enc->width = width;
enc->height = height;
st->time_base = (AVRational){ 1, framerate };
AVRational tb;
tb.num=1;
tb.den=framerate;
st->time_base = tb;
enc->time_base = st->time_base;
enc->gop_size = 200;