AVCodec is const in FFmpeg 5 BUG: 448776 (cherry picked from commit d27049f9)
mentioned in merge request !16 (closed)