avcodec/loco: use enum for mode variable