avcodec/exr: set layer_match in all branches