From 78e851c52cd4f40df6418c2df6669ddbb56ac3cc Mon Sep 17 00:00:00 2001 From: H-M-H Date: Wed, 31 Aug 2016 22:04:40 +0200 Subject: [PATCH] hopefully made msvc happy now --- src/engine/client/video.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/engine/client/video.cpp b/src/engine/client/video.cpp index 47f1e1e22..fd7fd755b 100644 --- a/src/engine/client/video.cpp +++ b/src/engine/client/video.cpp @@ -11,7 +11,6 @@ #define STREAM_PIX_FMT AV_PIX_FMT_YUV420P /* default pix_fmt */ CVideo::CVideo(CGraphics_Threaded* pGraphics, IStorage* pStorage, IConsole *pConsole, int width, int height) : - IVideo::IVideo(), m_pGraphics(pGraphics), m_pStorage(pStorage), m_pConsole(pConsole), @@ -40,6 +39,7 @@ CVideo::CVideo(CGraphics_Threaded* pGraphics, IStorage* pStorage, IConsole *pCon m_NextFrame = false; + // TODO: m_HasAudio = false; @@ -556,7 +556,8 @@ void CVideo::add_stream(OutputStream *ost, AVFormatContext *oc, AVCodec **codec, c->channels = 2; c->channel_layout = AV_CH_LAYOUT_STEREO; - ost->st->time_base = (AVRational){ 1, c->sample_rate }; + ost->st->time_base.num = 1; + ost->st->time_base.den = c->sample_rate; break; case AVMEDIA_TYPE_VIDEO: @@ -570,7 +571,8 @@ void CVideo::add_stream(OutputStream *ost, AVFormatContext *oc, AVCodec **codec, * of which frame timestamps are represented. For fixed-fps content, * timebase should be 1/framerate and timestamp increments should be * identical to 1. */ - ost->st->time_base = (AVRational){ 1, m_FPS }; + ost->st->time_base.num = 1; + ost->st->time_base.den = m_FPS; c->time_base = ost->st->time_base; c->gop_size = 12; /* emit one intra frame every twelve frames at most */