Previously the switch did not catch all cases issuing a quite large warning. Also there was a const-ness warning for codecs on ffmpeg 5.0 that this addresses.