]> git.sesse.net Git - nageru/blobdiff - nageru/audio_encoder.cpp
Fix compilation with FFmpeg 5.0.
[nageru] / nageru / audio_encoder.cpp
index b236c002e7df44288651c7e6557afbb35844dcc7..61ddfffcb80fc38cd69d6e1031686addde49dd8a 100644 (file)
@@ -29,7 +29,7 @@ using namespace std;
 
 AudioEncoder::AudioEncoder(const string &codec_name, int bit_rate, const AVOutputFormat *oformat)
 {
-       AVCodec *codec = avcodec_find_encoder_by_name(codec_name.c_str());
+       const AVCodec *codec = avcodec_find_encoder_by_name(codec_name.c_str());
        if (codec == nullptr) {
                fprintf(stderr, "ERROR: Could not find codec '%s'\n", codec_name.c_str());
                abort();