avcodec: fix some const warnings