From 50b6f9f570f4a2989fa45cc033cd983ad05cd9f6 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 4 Jul 2023 20:55:01 +0200 Subject: [PATCH] Stop caring about FFmpeg pre-5.0. --- README | 2 +- nageru/video_encoder.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README b/README index 66c9d3a..0950547 100644 --- a/README +++ b/README @@ -58,7 +58,7 @@ Nageru currently needs: - x264 for encoding high-quality video suitable for streaming to end users. - FFmpeg for muxing, and for encoding audio. You will need at least - version 4.0. + version 5.0. - Working OpenGL; Movit works with almost any modern OpenGL implementation. Nageru has been tested with Intel on Mesa (you want 11.2 or newer, due diff --git a/nageru/video_encoder.cpp b/nageru/video_encoder.cpp index 655788b..ca5ed01 100644 --- a/nageru/video_encoder.cpp +++ b/nageru/video_encoder.cpp @@ -205,7 +205,7 @@ RefCountedGLsync VideoEncoder::end_frame() void VideoEncoder::open_output_stream() { AVFormatContext *avctx = avformat_alloc_context(); - avctx->oformat = const_castoformat)>(oformat); // const_cast is a hack to work in FFmpeg both before and after 5.0. + avctx->oformat = oformat; uint8_t *buf = (uint8_t *)av_malloc(MUX_BUFFER_SIZE); avctx->pb = avio_alloc_context(buf, MUX_BUFFER_SIZE, 1, this, nullptr, nullptr, nullptr); -- 2.39.2