X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Fvideo_encoder.cpp;h=ca5ed01b6569f4fc60807070336ec2a904c8678f;hb=50b6f9f570f4a2989fa45cc033cd983ad05cd9f6;hp=655788b31fc85fc71c3f24b965a38bd2f23143ee;hpb=e35786415c00652b3436dab5174c2504d314a219;p=nageru 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);