libav: better libav version check for CODEC_ID -> AV_CODEC_ID transition #2