]> git.sesse.net Git - nageru/blobdiff - nageru/video_encoder.cpp
Stop caring about FFmpeg pre-5.0.
[nageru] / nageru / video_encoder.cpp
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);