Skip to content

Commit 6ca46a1

Browse files
authored
Update recorder.cpp
1 parent 6e03e94 commit 6ca46a1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/recorder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ bool Recorder::init(const RenderSettings& settings) {
7373
m_codecContext->bit_rate = settings.m_bitrate;
7474
m_codecContext->width = settings.m_width;
7575
m_codecContext->height = settings.m_height;
76-
m_codecContext->time_base = AVRational(1, settings.m_fps);
76+
m_codecContext->time_base = AVRational{1, settings.m_fps};
7777
m_codecContext->pix_fmt = AV_PIX_FMT_NONE;
7878
m_videoStream->time_base = m_codecContext->time_base;
7979

@@ -218,4 +218,4 @@ void Recorder::stop() {
218218
delete m_packet;
219219
}
220220

221-
}
221+
}

0 commit comments

Comments
 (0)