]> git.sesse.net Git - nageru/commitdiff
Stop caring about FFmpeg pre-5.0.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 4 Jul 2023 18:55:01 +0000 (20:55 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 4 Jul 2023 18:55:01 +0000 (20:55 +0200)
README
nageru/video_encoder.cpp

diff --git a/README b/README
index 66c9d3a2e623b127dcb0cca9ff4917dd8703d441..095054743ba5978e6e6133aba004e45df823565f 100644 (file)
--- 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
index 655788b31fc85fc71c3f24b965a38bd2f23143ee..ca5ed01b6569f4fc60807070336ec2a904c8678f 100644 (file)
@@ -205,7 +205,7 @@ RefCountedGLsync VideoEncoder::end_frame()
 void VideoEncoder::open_output_stream()
 {
        AVFormatContext *avctx = avformat_alloc_context();
-       avctx->oformat = const_cast<decltype(avctx->oformat)>(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);