When compiling with libavcodec version 59.37.100 and GCC 12.3.0 I get the following error message:
src/ffmpeg_encoder.cpp: In member function 'bool ffmpeg_image_transport::FFMPEGEncoder::openCodec(int, int)':
src/ffmpeg_encoder.cpp:97:51: error: invalid conversion from 'const AVCodec*' to 'AVCodec*' [-fpermissive]
When compiling with libavcodec version 59.37.100 and GCC 12.3.0 I get the following error message:
The change in libavcodec that causes this was introduced in https://github.com/FFmpeg/FFmpeg/commit/626535f6a169e2d821b969e0ea77125ba7482113, and appeared first in version 59.0.100.
This commit fixes the error.