From fe21f0aff1231b3f6e001de65b1eeee30228a879 Mon Sep 17 00:00:00 2001 From: Gerhard Kitzler Date: Fri, 30 Jun 2017 09:31:18 +0200 Subject: [PATCH] Fix FFMPEG for Windows --- ng/encoding.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ng/encoding.hpp b/ng/encoding.hpp index c94d3408..4f2b5fd2 100644 --- a/ng/encoding.hpp +++ b/ng/encoding.hpp @@ -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;